From 1aaa177de6814903e1332a1e4a9fb48d974f1f22 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 30 Sep 2024 19:54:30 +0000 Subject: [PATCH] Bug 38041: Pass hide_main for all needsconfirm warnings in SCO To test: 1. APPLY PATCH and restart_all 2. Make sure the following errors when issuing in SCO show just the error, no other info. on screen: DEBT RENEW_ISSUE ISSUED_TO_ANOTHER RESERVED TRANSFERRED INVALID_DATE ( cant test in SCO ) TOO_MANY RECALLED Signed-off-by: CJ Lynce --- opac/sco/sco-main.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opac/sco/sco-main.pl b/opac/sco/sco-main.pl index bf923c754f..25503fe916 100755 --- a/opac/sco/sco-main.pl +++ b/opac/sco/sco-main.pl @@ -257,6 +257,9 @@ if ( $patron && $op eq "cud-returnbook" && $allowselfcheckreturns ) { $failed_checkout->{DEBT} = $needconfirm->{DEBT}; } push @failed_checkouts, $failed_checkout; + $template->param( + hide_main => 1, + ); } else { if ( $confirmed || $issuenoconfirm ) { # we'll want to call getpatroninfo again to get updated issues. my ( $hold_existed, $item ); -- 2.39.5