From 950deda0c2903e0fe66ea7962d40f2cb0111cc75 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. --- Koha/Suggestion.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Suggestion.pm b/Koha/Suggestion.pm index f4d41566759..631c1f662a4 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.41.0