From f02fb9b375d924040886a4014f20cf1ed4972b19 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 Signed-off-by: Tomas Cohen Arazi Signed-off-by: Jonathan Druart --- 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 08505dfb47..5c7802cfe0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -125,7 +125,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.39.5