Bug 42071: Add 'show' to options that load a single suggestion
Test plan: Before applying the patch: 1. Go to acquisitions 2. Go to Purchase Suggestions 3. Create a purchase suggestion (for ease of testing, select Centerville for the library) 4. On the table, click on the suggestion number 5. Observe the suggestion does not populate, including the breadcrumbs, but the url does contain the suggestion number. 6. Apply the patch 7. restart_all 8. Rpeat steps 1-4 9. Observe the suggestion now populates and can be edited. Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
f2425666c9
commit
a28cbfd39e
|
|
@ -101,7 +101,7 @@ my $reasonsloop = GetAuthorisedValues("SUGGEST");
|
|||
|
||||
my $suggestion_ref = { $input->Vars };
|
||||
my $stored_suggestion;
|
||||
if ( $op eq "edit_form" ) {
|
||||
if ( $op eq "edit_form" || $op eq "show" ) {
|
||||
$stored_suggestion = Koha::Suggestions->find( $input->param('suggestionid') ) if $input->param('suggestionid');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue