]> 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)
committerBrendan Gallagher <bredan@bywatersolutions.com>
Fri, 22 Apr 2016 00:24:05 +0000 (00:24 +0000)
commitd46a664ef6b79f6ceee2c00629f5933b4eaedfc3
tree761d66e55ca90dc5132e5656ee40248b8fe3ccc8
parentd83aff33c603d1ba4d16de53ad926bd93a09629b
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>
admin/smart-rules.pl