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 Bug 19968: Add missing use Date::Calc statement 2018-01-23 01:45:38 +00:00
addbiblio.pl Bug 19528: (QA follow-up) Adjust language for readability 2017-10-27 14:09:04 -03:00
addbooks.pl Bug 19987: If no z39.50/SRU servers the button should not show 2018-01-23 02:01:26 +00:00
additem.pl Bug 21009: Fix max length of inputs on editing/adding items 2018-07-30 14:09:15 +02:00
editor.pl Bug 11559: (QA followup) fix several small issues 2015-10-27 12:25:01 -03:00
linkitem.pl Bug 20829: Handle non-existent barcode when linking to host item 2018-06-14 15:13:51 +02:00
merge.pl Bug 18593: Move suggestions when bibliographic records are merged 2018-04-23 22:29:01 +00:00
merge_ajax.pl Bug 14588: Simplify merge_ajax.pl 2015-08-21 10:21:39 -03:00
moveitem.pl Bug 18262: Koha::Biblio - Remove GetBiblioData - part 1 2017-07-14 12:22:23 -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 16154: CGI->multi_param - Force scalar context 2016-04-26 23:16:43 +00:00
z3950_search.pl Bug 16154: CGI->multi_param - Declare a list 2016-04-26 23:16:42 +00:00