]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 3 Jan 2024 16:27:11 +0000 (17:27 +0100)
commitd4a81e4c2a40ed91513eb2877c79645e9192d32e
tree226ea5dce4d619e94bad36138a089290baf3d1dc
parent43d1b353bb210e72efe552125df5279cf311aa4b
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>
(cherry picked from commit 97aab6a98e05ed989e7cc719450d274c80e34bb9)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
serials/subscription-numberpatterns.pl