[Koha-bugs] [Bug 21009] Item URIs longer than 255 bytes are silently truncated

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 6 22:25:39 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21009

Pierre-Luc Lapointe <pierre-luc.lapointe at inLibro.com> changed:

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

--- Comment #3 from Pierre-Luc Lapointe <pierre-luc.lapointe at inLibro.com> ---
Created attachment 76749
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=76749&action=edit
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 47d2de9c024bfb93d56184f298f334b20685cd86
  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 at inLibro.com>

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


More information about the Koha-bugs mailing list