From 3f5a39c49f569d18b8607ae874405865f599ba76 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 23 Jun 2021 10:35:54 +0200 Subject: [PATCH] Bug 27526: Improve grep for date fields 'replacementpricedate' should not catch 'price' Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 b6d9b98456..7cd183a1fb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -121,7 +121,7 @@ [% END %] [% FOREACH header IN item_header_loop %] [% SET attribute = header.attribute %] - [% IF header.attribute AND date_fields.grep(attribute).size %] + [% IF header.attribute AND date_fields.grep('^' _ attribute _ '$').size %] [% item.$attribute | $KohaDates %] [% ELSE %] [% item.$attribute | html %] -- 2.20.1