From ed79acb8a7b316be3b0f29ed9a1ba54fbada2f46 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 30 Jan 2025 19:26:09 +0000 Subject: [PATCH] Bug 39003: Fix the tab template variable in opac-user.pl To test: 1. SuspendHoldsOpac to 'allow' 2. Make some holds for a patron 3. Log in as that patron and go to 'Summary' 4. Click the 'Holds' tab 5. No suspend column 6. APPLY PATCH, restart_all 7. Try again, the column should show. 8. Turn off SuspendHoldsOpac, the column should be hidden. --- opac/opac-user.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-user.pl b/opac/opac-user.pl index dc2b3228000..bd1137c5ace 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -411,7 +411,7 @@ $template->param( patronupdate => $patronupdate, OpacRenewalAllowed => C4::Context->preference("OpacRenewalAllowed"), userview => 1, - tab => $query->param('tab'); + tab => scalar $query->param('tab') || 0, SuspendHoldsOpac => C4::Context->preference('SuspendHoldsOpac'), AutoResumeSuspendedHolds => C4::Context->preference('AutoResumeSuspendedHolds'), OpacHoldNotes => C4::Context->preference('OpacHoldNotes'), -- 2.39.5