Koha/cataloguing
Jonathan Druart 2414a4e705 Bug 21009: Fix max length of inputs on editing/adding items
There is a "max length" value you can define at framework level to
limit the size of the input. But it is not taken into account on the
add/edit item form.

It is a regression that has been introduced by
  commit 47d2de9c02
  Bug 12176: Remove HTML from additem.pl

max_length vs maxlength

Test plan:
- Define a maximum length for an item subfield
- Add or edit an item
=> Without this patch the maxlength attribute of the inputs are not
defined (maxlength="")
=> With this fix you will see the maxlength attributes correctly set
with the value you defined in the framework

Note:
We could/should set this value to the size of the DB column when mapped
For instance 952$u is mapped with items.uri, which is a varchar(255).
This length restriction should done at framework level

Signed-off-by: Pierre-Luc Lapointe <pierreluc.lapointe@inLibro.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-07-12 12:57:25 +00:00
..
value_builder Bug 19996: (RM follow-up 2) Remove commented use warnings; 2018-02-15 11:23:51 -03:00
addbiblio.pl Bug 20477: Silence floody noise on fast cataloging 2018-05-04 09:25:58 -03:00
addbooks.pl Bug 20047: (follow-up) Retrieve only biblio/authority servers as appropriate 2018-04-20 13:34:41 -03:00
additem.pl Bug 21009: Fix max length of inputs on editing/adding items 2018-07-12 12:57:25 +00:00
editor.pl Bug 18904: Advanced editor - Rancor - Add authority support 2018-04-12 10:50:36 -03:00
linkitem.pl Bug 20829: Handle non-existent barcode when linking to host item 2018-06-08 09:48:11 -04:00
merge.pl Bug 18593: Move suggestions when bibliographic records are merged 2018-03-26 17:01:10 -03:00
merge_ajax.pl Bug 14588: Simplify merge_ajax.pl 2015-08-21 10:21:39 -03:00
moveitem.pl Bug 19996: (QA follow-up) Remove commented use warnings; 2018-02-05 09:45:47 -03:00
plugin_launcher.pl Bug 16154: CGI->multi_param - Force scalar context 2016-04-26 23:16:43 +00:00
ysearch.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
z3950_auth_search.pl Bug 19996: use Modern::Perl in cataloguing perl scripts 2018-02-05 09:45:47 -03:00
z3950_search.pl Bug 19996: use Modern::Perl in cataloguing perl scripts 2018-02-05 09:45:47 -03:00