From 9c1a87b8b1351d1659773729e39079328fc59e83 Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Mon, 11 Feb 2019 11:08:52 +0000 Subject: [PATCH] Bug 20581: (follow-up) Fix status_alias -1 bug Stupid bug, we need to pass NULL not -1 when unsetting status_alias Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- Koha/Illrequest.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Illrequest.pm b/Koha/Illrequest.pm index 7d5eb485d2..98e4d707d4 100644 --- a/Koha/Illrequest.pm +++ b/Koha/Illrequest.pm @@ -186,7 +186,7 @@ sub status_alias { # We need a way of accepting implied undef, so we can nullify # the status_alias column, when called from $self->status my $val = $newval eq "-1" ? undef : $newval; - my $newval = $self->SUPER::status_alias($newval); + my $newval = $self->SUPER::status_alias($val); if ($newval) { return $newval; } else { -- 2.39.5