From 2a4d6825857975dc28bb0cc0ba1a769989e5e2e7 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 16 Nov 2023 14:12:17 +0000 Subject: [PATCH] Bug 35351: Adjust basket details template to avoid showing empty page-section This patch makes a minor change to the markup of the basket details page so that we don't display an empty div.page-section when there are no orders. Note: This patch includes whitespace changes, so please ignore whitespace when viewing the diff. To test, apply the patch and go to Acquisitions. - Search for a vendor and add a basket if necessary. - View the details of an empty basket. - Under the "General information" or "Settings" sections there should be no empty white box. - View the details of a basket which has orders (using the "Add to basket" process if necessary). - Orders should be displayed correctly. --- .../intranet-tmpl/prog/en/modules/acqui/basket.tt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt index 129567a290..197bcd2712 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -454,8 +454,8 @@ [% END %] -
- [% IF ( books_loop ) %] + [% IF ( books_loop ) %] +

Orders

@@ -727,9 +727,9 @@ [% END %]
- [% END # / IF ( books_loop ) %] - [% IF ( listincgst ) %]** Vendor's listings already include tax.[% END %] -
+ [% IF ( listincgst ) %]** Vendor's listings already include tax.[% END %] +
+ [% END # / IF ( books_loop ) %] [% IF (cancelledorders_loop) %]
-- 2.30.2