[Koha-bugs] [Bug 8018] New subfields have a default max length of zero
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Dec 22 22:22:39 CET 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8018
Chris Cormack <chris at bigballofwax.co.nz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #23485|0 |1
is obsolete| |
--- Comment #7 from Chris Cormack <chris at bigballofwax.co.nz> ---
Created attachment 23758
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23758&action=edit
Bug 8018: maxlenght should default to 9999 for subfields
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'.
PabloAB
Signed-off-by: Tomas Cohen Arazi <tomascohen at gmail.com>
Works by defaulting 0 or "" to 9999.
Signed-off-by: Chris Cormack <chrisc at catalyst.net.nz>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list