From 8768a3f701b738ff2101b3e89d2836c0d0df6780 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 4 Oct 2024 09:04:18 +0000 Subject: [PATCH] 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 Signed-off-by: Aleisha Amohia Signed-off-by: Katrin Fischer (cherry picked from commit fbc2e2e9333fbdd61a744297e36a6752106c1977) Signed-off-by: Lucas Gass (cherry picked from commit dd45949443ecc8c04f78f91b2f90e90ab8a12c12) Signed-off-by: Fridolin Somers --- circ/add_message.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circ/add_message.pl b/circ/add_message.pl index 37fb2d14bc..e326ca3015 100755 --- a/circ/add_message.pl +++ b/circ/add_message.pl @@ -59,7 +59,7 @@ else { 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"; $url .= "&batch=1" if $batch;