From b049827042f9bf9306132398d54271e4057ba993 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 file 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 d19386e2fc..fbe48a2b29 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 %] -- 2.39.5