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 <david@davidnind.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
3eaaf784cb
commit
86d36eacc0
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue