]> git.koha-community.org Git - koha.git/commit
Bug 37902: Do not convert a date if it has like markers
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 16 Sep 2024 08:43:13 +0000 (10:43 +0200)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 18 Oct 2024 12:25:59 +0000 (14:25 +0200)
commit95e9ae46bd862a939316b2bf298cb75cd7d30859
tree59a8354e4b03d8904e8eabcbdeb7bc09ea114c23
parentb63b8e19b3ada47bf00e0ae71ccbaa0751812732
Bug 37902: Do not convert a date if it has like markers

If we pass a datetime parameter we are adding "like" operator and % at
the beginning and ending of the attribute value.
For instance:
  attributes=2024-09-16 10:11:12
  attributes:{ like => '%2024-09-16 10:11:12%' }

We do not want to reach the fixup code and raise an exception.

However I don't think we should add the like for datetime attributes
actually. But can we modify this behaviour now?

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/Object.pm