]> git.koha-community.org Git - koha.git/commit
Bug 28704: Library MARCOrgCode field needs maxlength attribute
authorOwen Leonard <oleonard@myacpl.org>
Tue, 13 Jul 2021 10:54:59 +0000 (10:54 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 11 Aug 2021 19:47:36 +0000 (09:47 -1000)
commitd4d13c7527fc5f94458cecfee36b13137b93ea04
tree3334d5638fbeb61ceb015d42f59adea3bad282f3
parent71d5de417324f6a2337767b389e39bfe3cb1b43a
Bug 28704: Library MARCOrgCode field needs maxlength attribute

This patch adds a maxlength attribute to the "MARC organization code"
field in the form for adding and editing libraries. The maxlength, 16,
matches the limit of the table column.

To reproduce the problem, go to Administration -> Libraries.
 - Add or edit a library
 - Fill the "MARC organization code" field with a string longer than 16
   characters, e.g. Decriminalization
 - When you save the record you will see an error.

Apply the patch and add or edit a library.
 - Confirm that you cannot enter more than 16 characters in the "MARC
   organization code" field.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 7091aeab8d30c0ea5169e677c3685842bf215e92)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt