Koha-clms/cataloguing
Jonathan Druart ed2cf32df9 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>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 73e9c077f6)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2018-07-30 14:09:15 +02:00
..
value_builder
…
addbiblio.pl
…
addbooks.pl
…
additem.pl Bug 21009: Fix max length of inputs on editing/adding items 2018-07-30 14:09:15 +02:00
editor.pl
…
linkitem.pl
…
merge.pl
…
merge_ajax.pl
…
moveitem.pl
…
plugin_launcher.pl
…
ysearch.pl
…
z3950_auth_search.pl
…
z3950_search.pl
…