From a84c4c5a259311b0086cf44d1e1f4056300c691e Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 2 Jan 2025 16:02:57 -0300 Subject: [PATCH] [24.05.x] Bug 38813: Make inner tabs selected correctly On the 24.05.x branch (i.e. before the tab wrapper) the template logic is making it not select the first tab if there are no policies defined. To test: 1. Have KTD running on 24.05.x 2. Enable the `CurbsidePickups` system preference 3. Define a policy (anyone), DISABLED 4. Log into the OPAC and point your browser to /cgi-bin/koha/opac-curbside-pickups.pl => FAIL: The 'Your pickups' tab is grey (not selected) and there's no content below it 5. ENABLE the policy and reload the OPAC => SUCCESS: Notice it gives you the option to 'Schedule a pickup', selected by default. 6. Apply this patch 7. Repeat 5 => SUCCESS: No behavior change 8. Repeat 3-4 => SUCCESS: The 'Your pickups' tab is selected, and the 'No curbside pickups' message displayed 9. Sign off :-D --- .../opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt index 03c7bc7999b..1e5d4ff418f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-curbside-pickups.tt @@ -141,7 +141,7 @@
- [% IF patron_curbside_pickups.count %] + [% IF patron_curbside_pickups.count || !policies.count %]
[% ELSE %]
-- 2.47.1