From 0f6e1660a5a0110573aa35fcda9f4c6a72899128 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 2 May 2013 16:46:51 +0200 Subject: [PATCH] Bug 8215: FIX ergonomic issue : 'Unchanged()' --- .../en/modules/course_reserves/course-details.tt | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt index d19386e..fbe48a2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt @@ -90,7 +90,9 @@ [% END %] [% ELSE %] Unchanged - ([% ItemTypes.GetDescription( cr.item.itype ) %]) + [% IF cr.item.itype %] + ([% ItemTypes.GetDescription( cr.item.itype ) %]) + [% END %] [% END %] [% END %] @@ -103,7 +105,9 @@ [% END %] [% ELSE %] Unchanged - ([% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %]) + [% IF cr.item.ccode %] + ([% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %]) + [% END %] [% END %] @@ -115,7 +119,9 @@ [% END %] [% ELSE %] Unchanged - ([% AuthorisedValues.GetByCode( 'LOC', cr.item.location ) %]) + [% IF cr.item.location %] + ([% AuthorisedValues.GetByCode( 'LOC', cr.item.location ) %]) + [% END %] [% END %] @@ -127,7 +133,9 @@ [% END %] [% ELSE %] Unchanged - ([% Branches.GetName( cr.item.holdingbranch ) %]) + [% IF cr.item.holdingbranch %] + ([% Branches.GetName( cr.item.holdingbranch ) %]) + [% END %] [% END %] [% cr.staff_note %] -- 1.7.2.5