From 94334a318ced3aa499e69dd70f28354332b8dd92 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 Content-Type: text/plain; charset=utf-8 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 --- 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 08cf1e4d9f..aa59914556 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