]> git.koha-community.org Git - koha.git/commit
Bug 15757: Make issuelength default to null instead of 0
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 7 Apr 2016 09:13:43 +0000 (10:13 +0100)
committerJulian Maurice <julian.maurice@biblibre.com>
Fri, 22 Apr 2016 11:41:58 +0000 (13:41 +0200)
commit2471a0e3a9f222b756d01492b413232afa60c1c6
tree1f67c43bb65c9727fefc231ddde61e7b27f185ec
parent271cbb949ae680487598bc5d873e439ecc26c315
Bug 15757: Make issuelength default to null instead of 0

When editing circ rules, if the Loan period "issuelength" is not defined
(empty string), the default value was 0, not it's inserted in the DB as
NULL.

Test plan:
1/ Create or edit a circ rule
2/ Do not fill the Loan period column
3/ Save
=> Without this patch, the value was 0
=> With this patch it's now an empty string (in the DB it's set to NULL)

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Works as described.
No errors

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit d46a664ef6b79f6ceee2c00629f5933b4eaedfc3)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
admin/smart-rules.pl