[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
Thu Dec 12 16:39:36 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8018

Tomás Cohen Arazi <tomascohen at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #23483|0                           |1
        is obsolete|                            |

--- Comment #4 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 23485
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=23485&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.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list