From 4e33042105435078222aab1b72a1e7a1d0a8ff56 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 19 Sep 2023 16:37:08 +0100 Subject: [PATCH] Bug 32942: (follow-up) Restore missing statuses At some stage we lost some of the core statuses. This patch simply adds them back into the list. Signed-off-by: Tomas Cohen Arazi --- Koha/Suggestion.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Suggestion.pm b/Koha/Suggestion.pm index f4d4156675..631c1f662a 100644 --- a/Koha/Suggestion.pm +++ b/Koha/Suggestion.pm @@ -51,7 +51,7 @@ sub store { my ($self) = @_; $self->STATUS("ASKED") unless $self->STATUS; - my @status_constants = qw(ASKED CHECKED ACCEPTED REJECTED); + my @status_constants = qw(ASKED CHECKED ACCEPTED REJECTED ORDERED AVAILABLE); Koha::Exceptions::Suggestion::StatusForbidden->throw( STATUS => $self->STATUS ) unless ( grep { $self->STATUS eq $_ } @status_constants ) || Koha::AuthorisedValues->search( -- 2.39.5