From cace7e551ac5e9d5d2778c64ee8417c1f92bb3c0 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 13 Jul 2021 10:54:59 +0000 Subject: [PATCH] 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. --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt index 38183a507a..01b2c0f455 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt @@ -243,7 +243,7 @@ Libraries › Administration › Koha
  • - +
    [% IF ( CAN_user_parameters_manage_sysprefs ) %] If not filled in defaults to system preference MARCOrgCode. -- 2.20.1