]> git.koha-community.org Git - koha.git/commit
Bug 28012: Use definedness test instead of bool when checking whether to null fields
authorJoonas Kylmälä <joonas.kylmala@iki.fi>
Sat, 3 Sep 2022 10:37:31 +0000 (13:37 +0300)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Wed, 27 Dec 2023 18:06:06 +0000 (19:06 +0100)
commit97aab6a98e05ed989e7cc719450d274c80e34bb9
treea917455a208cf4c8fdc27d2c6bd6ee7cb921355b
parentfa4fd2005eba590720c2f2c21de6296f8053ca4d
Bug 28012: Use definedness test instead of bool when checking whether to null fields

Saving a new numbering pattern didn't work without having to fill all
the fields, even those that are not mandatory.

To test:
 1) Go to /cgi-bin/koha/serials/subscription-numberpatterns.pl
    and try creating a new pattern, notice that only Name and
    Description are mandatory after applying this patch
 2) Make sure editing existing numbering patterns still works

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
serials/subscription-numberpatterns.pl