Bug 13441 - Branchcodes should not be allowed to have spaces in them
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 1 Jan 2015 21:38:34 +0000 (16:38 -0500)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 5 Feb 2015 18:08:44 +0000 (15:08 -0300)
commita7c41e6073a2719e21f86909a37daab6410b2b96
tree0f0b268db1340b413f131af71d18ceb09f25e910
parent522e9c5861854fad7c9b292f75ebd19968f5b11c
Bug 13441 - Branchcodes should not be allowed to have spaces in them

In multiple cases I've seen issues arise in Koha where a librarian
accidentally puts a space at the end of a new branchcode. This of course
causes endless confusion because the branchcode looks perfectly fine in
every case unless you wrap the code with some characters to reveal the
hidden space!

Test Plan:
1) Try creating a new branch with one or more spaces in the branchcode
2) Note you are able to
3) Apply this patch
4) Repeat step 1
5) Note you are no longer able to

Followed test plan with cache cleared. Works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described, passes tests and QA script.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt