From 11898b1b7cf8b5e16688fef1dd445ab81299483b 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 --- 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 08cf1e4d9f6..aa59914556c 100755 --- a/circ/add_message.pl +++ b/circ/add_message.pl @@ -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"; -- 2.39.5