From 5c65f5d43b1e65fb149c7b733ec0637fe4d38ebd Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 17 Jan 2014 16:31:54 +0100 Subject: [PATCH] [PASSED QA] Bug 11429: Manage display for basketgroup without name If a basketgroup does not have a name, the link was ' (closed)' Now it is "Basket group no. ID (closed)". This is used on the acqui/basketgroup.pl?booksellerid=XX page Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer Passes all tests and QA script. Adds a link to the basket group page on the basket summary page. The link only appears when the basket group is closed. --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ebfa553..da78b7b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -345,6 +345,9 @@
  1. Basket group: + [% IF basketgroup.id and not basketgroup.name %] + [% SET basketgroup.name = "Basket group no. " _ basketgroup.id %] + [% END %] [% IF basketgroup.closed %] [% IF ( CAN_user_acquisition_group_manage ) %] [% basketgroup.name %] (closed) @@ -352,7 +355,7 @@ [% basketgroup.name %] (closed) [% END %] [% ELSIF ( ! CAN_user_acquisition_group_manage ) %] - [%- IF basketgroup.name -%] + [%- IF basketgroup.id -%] [% basketgroup.name %] [%- ELSE -%] No group -- 1.8.3.2