Bug 42750: Add redirect params back and exit after redirect
To test: 1. Find a patron 2. From the patron account click the "Purchase suggestions" button 3. Make a suggestion 4. Your are redirected to suggestion/suggestion.pl 5. APPLY PATCH, restart_all 6. Try again, this time you should be properly redirected back to the patron account: ( members/purchase-suggestions.pl?borrowernumber=X ) Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
db044d8552
commit
391d9f461c
|
|
@ -273,6 +273,7 @@ if ( $op =~ /cud-save/ ) {
|
|||
|
||||
if ( $redirect eq 'purchase_suggestions' ) {
|
||||
print $input->redirect("/cgi-bin/koha/members/purchase-suggestions.pl?borrowernumber=$borrowernumber");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
} elsif ( $op eq 'add_form' ) {
|
||||
|
|
@ -517,6 +518,7 @@ $template->param(
|
|||
filter_archived => $filter_archived,
|
||||
"op" => $op,
|
||||
reasonsloop => $reasonsloop,
|
||||
redirect => $redirect,
|
||||
);
|
||||
|
||||
if ( defined($returnsuggested) and $returnsuggested ne "no_one" ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue