]> git.koha-community.org Git - koha.git/commit
Bug 32271: (QA follow-up) Correction to 'can_be_blank' logic
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 19 Jul 2023 11:31:14 +0000 (12:31 +0100)
committerPedro Amorim <pedro.amorim@ptfs-europe.com>
Fri, 18 Aug 2023 10:36:12 +0000 (10:36 +0000)
commit67aa3dbba369661b3249525a46469a8c7dd1b1d0
tree20de0a65ecfe019b3527f476296ee55c02d384e1
parentb3b62a5e1e3f1025530f1638ec6b2dc010d4d493
Bug 32271: (QA follow-up) Correction to 'can_be_blank' logic

The logic introducing the can_be_blank check into the monetary decimal
format check was flawed and meant we were no longer checking decimal
formatting in the majority of cases. This patch updates that so we pass
the unit tests and correctly check any value passed that's not an empty
string.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit c42725bab4f7f4dc360d9b4fe0417b8b3082d879)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 7ccbda031cbc076fe2188133c9b1327ed1b599d8)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Koha/CirculationRules.pm