]> git.koha-community.org Git - koha.git/commit
Bug 8018: MARC framework max subfield length should default to 9999
authorPablo Bianchi <pablo.bianchi@gmail.com>
Wed, 11 Dec 2013 18:54:54 +0000 (15:54 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 7 Feb 2014 14:44:32 +0000 (11:44 -0300)
commit5739cd798d5a76cb1f69b772ac5a0efde0ec532e
tree17c943e321e0fce0c58cfc3248b2295707f3a6bc
parent66ae2ee57d0daa168fe3ff4d33585241b890c873
Bug 8018: MARC framework max subfield length should default to 9999

The default value for the marc_subfield_structure.maxlenght is 9999
in the DB. Currently the template passes an empty value which is casted to
0 by the CGI.

This simple patch validates the input and converts to the default (9999)
if not defined or 0.

Another approach could be changing the 9999 default and/or treating 0 as
'no-limit'.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Works by defaulting 0 or "" to 9999.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 1ebbf40ecc07b9474e81e20ec1598659ab027d7a)
Signed-off-by: Fridolin SOMERS <fridolin.somers@biblibre.com>
(cherry picked from commit a3f0eb97697213a267de0f8191e2acbc4197f6ab)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
admin/marc_subfields_structure.pl