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)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 10 Feb 2015 21:50:15 +0000 (10:50 +1300)
commit016b111d4e6281c5d8618acd8a5563f627957952
treef6c85e27be534618bf1e83bac56f618a1713d442
parent70282cf9a4edbd09f7482cefa5968d6149965e7b
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>
(cherry picked from commit a7c41e6073a2719e21f86909a37daab6410b2b96)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt