From 62720dba11084fedd68df4844e25edbd858d0a24 Mon Sep 17 00:00:00 2001 From: Eric Garcia Date: Mon, 15 Jul 2024 20:17:57 +0000 Subject: [PATCH] Bug 37365: Fixed redirect when adding a patron message from members/files.pl To test: 1. Set 'EnableBorrowerFiles' to 'Do' 2. Find a patron record 3. Upload a file 4. Once the uploaed completes 'Add message' and save 5. You are redirected to /cgi-bin/koha/members/files.pl with a message like: "Patron not found. Return to search" 6. Apply patch and restart_all 7. Repeat steps 1-4 and notice you are redirected to the correct page '/cgi-bin/koha/members/files.pl?borrowernumber=' Signed-off-by: David Nind --- members/files.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/members/files.pl b/members/files.pl index c09658a2d2..ea2c0dae84 100755 --- a/members/files.pl +++ b/members/files.pl @@ -108,6 +108,11 @@ else { errors => \%errors, ); + + if ( $op eq 'cud-upload' ){ + print $cgi->redirect('/cgi-bin/koha/members/files.pl?borrowernumber=' . $borrowernumber ); + } + output_html_with_http_headers $cgi, $cookie, $template->output; } -- 2.39.2