From c34a8bb11fc080b6b2d8afb92f3f336f129b5552 Mon Sep 17 00:00:00 2001 From: Andreas Roussos Date: Wed, 24 Aug 2016 17:10:29 +0300 Subject: [PATCH] Bug 17185: Staff client shows "Lists that include this title:" even if item is not in a list MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In the staff client, the text "Lists that include this title:" is always shown, regardless of whether the item is in a list or not. This patch fixes that. Test plan: 1) Log in to staff client. 2) Go to biblio details view: /cgi-bin/koha/catalogue/detail.pl?biblionumber=X Confirm that "Lists that include this title:" is shown even if the item is not in a list. 3) Apply the patch. 4) Repeat step 2. Confirm that the patch works, i.e. "Lists that include this title:" is only shown for biblios that are actually in a list. Signed-off-by: Marcel de Rooy Only applies to non-XSLT view. Signed-off-by: Nick Clemens Signed-off-by: Kyle M Hall (cherry picked from commit add90157eb859143dc782fded4b00a47a39d8abe) Signed-off-by: Frédéric Demians (cherry picked from commit 551067f89c251420c6704ec262e4915782105c47) Signed-off-by: Julian Maurice --- 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 18c0970d61..1367a84263 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -521,7 +521,7 @@ function verify_images() { [% END %] - [% IF shelves %] + [% IF shelves.count %]
  • Lists that include this title:
      [% FOREACH s IN shelves %] -- 2.20.1