From 50aaa5256b5c115f56ab4ba835b948d6dce0f682 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Fri, 20 Jan 2017 16:14:25 +0000 Subject: [PATCH] Bug 17886: Forgot to count the lists shared to patron The private_shelves_shared_with_me structure is defined, but has 0 entries. The missing .count is the issue. TEST PLAN --------- 1) Make sure no lists exist at all. 2) Make there is at least one findable biblio record entered 3) Find that biblio record in the OPAC 4) Click 'Save to your lists' -- Notice that the whole save to list section is there. 5) apply this patch 6) Click 'Cancel' 7) Click 'Save to your lists' -- Notice you can only add now, which makes sense. 8) run koha qa test tools. --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-addbybiblionumber.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-addbybiblionumber.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-addbybiblionumber.tt index 164c750..aaa34e1 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-addbybiblionumber.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-addbybiblionumber.tt @@ -23,7 +23,7 @@ [% END %] - [% IF private_shelves.count or public_shelves.count or private_shelves_shared_with_me %] + [% IF private_shelves.count or public_shelves.count or private_shelves_shared_with_me.count %]
Select a list -- 2.1.4