diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt index 9cc3367330..ef570de7c2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -158,14 +158,16 @@ [% FOREACH header IN item_header_loop %] [% SET attribute = header.attribute %] [% SET can_mod = item.nomod ? "nomod" : "canmod" %] - [% IF header.attribute AND date_fields.grep('^' _ attribute _ '$').size %] - [% IF header.attribute == 'datelastseen' %] + [% IF attribute AND date_fields.grep('^' _ attribute _ '$').size %] + [% IF attribute == 'datelastseen' %]