From c4998fc9045af72ff2cfbb8f30c9d16012ebb791 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 17 Jan 2014 16:31:54 +0100 Subject: [PATCH] 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. Signed-off-by: Galen Charlton --- 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 ebfa553351..da78b7b651 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 -- 2.39.2