Bug 37365: (QA follow-up) Add borrowernumber to referrer url

Since we post to add_message, we need to ensure that the
borrowernumber is added to the referrer url. This 'tric' is
already done there for another form.

Test plan:
See original plan.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit fbc2e2e933)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Marcel de Rooy 2024-10-04 09:04:18 +00:00 committed by Lucas Gass
parent 5c45839b5b
commit dd45949443
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ if ( $op eq 'cud-edit_message' && $message_id ) {
my $url = $input->referer;
if ($url) {
if ( $url =~ m|circulation\.pl$| ) {
if ( $url =~ m/(circulation\.pl|members\/files\.pl)$/ ) {
# Trick for POST form from batch checkouts
$url .= "?borrowernumber=$borrowernumber";