From df0a89599c26355b4d96e5f53d033b71487cdeff Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 18 Nov 2019 18:55:39 +0000 Subject: [PATCH] Bug 24058: acquisition table displayed even if no order exist (bib detail) This patch corrects the template check for existence of acquisitions data on the bibliographic detail page. Now it will correctly hide the DataTable when there is no data. To test, apply the patch and enable the AcquisitionDetails system preference. - View the bibliographic detail page for a title which has no associated Acquisitions data. Under the "Acquisitions details" tab you should see only a message, "There is no order for this biblio." - View the detail page for a title which has associated Acquisitions data. The "Acquisitions details" tab should show the correct information. --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 571f3b23955..daa9c20bee5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -580,7 +580,7 @@ [% IF Koha.Preference('AcquisitionDetails') %]
- [% IF orders %] + [% IF orders.count %] -- 2.11.0