Bug 8215: FIX ergonomic issue : 'Unchanged()'
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 2 May 2013 14:46:51 +0000 (16:46 +0200)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 21 May 2013 22:50:59 +0000 (15:50 -0700)
koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt

index d19386e..fbe48a2 100644 (file)
@@ -90,7 +90,9 @@
                                     [% END %]
                                 [% ELSE %]
                                      <i>Unchanged</i>
-                                     ([% ItemTypes.GetDescription( cr.item.itype ) %])
+                                     [% IF cr.item.itype %]
+                                         ([% ItemTypes.GetDescription( cr.item.itype ) %])
+                                     [% END %]
                                 [% END %]
                             </td>
                             [% END %]
                                      [% END %]
                                  [% ELSE %]
                                      <i>Unchanged</i>
-                                     ([% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %])
+                                     [% IF cr.item.ccode %]
+                                         ([% AuthorisedValues.GetByCode( 'CCODE', cr.item.ccode ) %])
+                                     [% END %]
                                  [% END %]
                             </td>
                             <td>
                                     [% END %]
                                 [% ELSE %]
                                     <i>Unchanged</i>
-                                    ([% AuthorisedValues.GetByCode( 'LOC', cr.item.location ) %])
+                                    [% IF cr.item.location %]
+                                        ([% AuthorisedValues.GetByCode( 'LOC', cr.item.location ) %])
+                                    [% END %]
                                 [% END %]
                             </td>
                             <td>
                                     [% END %]
                                 [% ELSE %]
                                     <i>Unchanged</i>
-                                    ([% Branches.GetName( cr.item.holdingbranch ) %])
+                                    [% IF cr.item.holdingbranch %]
+                                        ([% Branches.GetName( cr.item.holdingbranch ) %])
+                                    [% END %]
                                 [% END %]
                             </td>
                             <td>[% cr.staff_note %]</td>