From 1fdb967a69cce0d47dc0e905a75483ccb73dc64c Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 16 Feb 2026 15:09:53 +0000 Subject: [PATCH] Bug 41857: Only find singly suggestion by id if 'edit_form' All ops that iterate on editsuggestions can potentially have multiple suggestionid and don't need stored_suggestion cud-update_status cud-delete cud-archive cud-unarchive cud-update_itemtype cud-update_manager I'm unsure if op = 'else' should also be included with edit_form Signed-off-by: David Nind --- suggestion/suggestion.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl index 93d8f199074..5e5689002ff 100755 --- a/suggestion/suggestion.pl +++ b/suggestion/suggestion.pl @@ -101,7 +101,7 @@ my $reasonsloop = GetAuthorisedValues("SUGGEST"); my $suggestion_ref = { $input->Vars }; my $stored_suggestion; -unless ( $op eq "cud-update_status" ) { +if ( $op eq "edit_form" ) { $stored_suggestion = Koha::Suggestions->find( $input->param('suggestionid') ) if $input->param('suggestionid'); } -- 2.43.0