]> git.koha-community.org Git - koha.git/commit
Bug 27945: Don't save rule if not defined
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 5 Oct 2021 09:30:37 +0000 (11:30 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 5 Oct 2021 09:45:20 +0000 (11:45 +0200)
commit96b1c3fa00b84093dde728e8d62f1f1db0298677
treea32ee4d361855fcb74191cbac751e28464892336
parent82155cdf35fa215e3d7bc600951f7594e4d166c3
Bug 27945: Don't save rule if not defined

The DB rev added a row with NULL (unlimited), and the UI a row with ''
(unlimited as well) when saved without value.

Better is to not have a row (still unlimited)

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
admin/smart-rules.pl
installer/data/mysql/atomicupdate/bug_27945.pl [deleted file]
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt