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

Tomás Cohen Arazi <[email protected]> changed:

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

--- Comment #4 from Tomás Cohen Arazi <[email protected]> ---
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 <[email protected]>
Works by defaulting 0 or "" to 9999.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to