Bug 27526: Improve grep for date fields
'replacementpricedate' should not catch 'price' Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
7a8357f709
commit
f02fb9b375
1 changed files with 1 additions and 1 deletions
|
@ -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 %]
|
||||
<td data-order="[% item.$attribute | html %]">[% item.$attribute | $KohaDates %]</td>
|
||||
[% ELSE %]
|
||||
<td>[% item.$attribute | html %]</td>
|
||||
|
|
Loading…
Reference in a new issue