]> git.koha-community.org Git - koha.git/commit
Bug 26946: Set maxlength for cash register name
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 9 Nov 2020 12:57:13 +0000 (12:57 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 10 Dec 2020 10:31:11 +0000 (11:31 +0100)
commit57fa54cd7a71a704408cb3630c70bbb53de2b6fd
treec79844d012d473c82a5b36213c4e442e60baabef
parent8338946e4e3f00e4679abf3073ee0f092f054deb
Bug 26946: Set maxlength for cash register name

The cash register names is limited to 24 characters at the database
level and so that restriction should also be reflected in the UI.

Test plan
1/ Add or Edit a cash register ( admin > accounts > cash registers )
2/ Note that you can enter a cash register name longer than 24
characters, but upon save the value is truncated.
3/ Apply patch
4/ Note you can not longer enter a cash register name longer than 24
characters.
5/ Signoff

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 012229c5ea77a009dc708db4370bf499e48dad01)
koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt