Bugzilla – Attachment 155906 Details for
Bug 32942
Suggestion API doesn't support custom statuses
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32942: (follow-up) Restore missing statuses
Bug-32942-follow-up-Restore-missing-statuses.patch (text/plain), 1006 bytes, created by
Martin Renvoize (ashimema)
on 2023-09-19 15:41:28 UTC
(
hide
)
Description:
Bug 32942: (follow-up) Restore missing statuses
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-09-19 15:41:28 UTC
Size:
1006 bytes
patch
obsolete
>From 950deda0c2903e0fe66ea7962d40f2cb0111cc75 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32942
:
146508
|
146592
|
146593
|
146594
|
154642
|
154643
|
155801
|
155802
|
155803
|
155804
|
155805
|
155806
|
155900
|
155901
|
155902
|
155903
|
155904
|
155905
| 155906