]> git.koha-community.org Git - koha.git/commit
Bug 13457 - Followup for CPL and S codes
authorMark Tompsett <mtompset@hotmail.com>
Fri, 19 Dec 2014 17:28:19 +0000 (12:28 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 9 Feb 2015 21:48:36 +0000 (10:48 +1300)
commit36da7efe95c2e1509aef76a13e3fc09f0d531db2
treefa5afdaaa3d64276cbfa72a4758899b6e68f3093
parent702b26488b582afffe9297274f5ee667d79cc0f6
Bug 13457 - Followup for CPL and S codes

Based on comment #3, this corrects CPL and S issues if they do
not exist in the DB.

TEST PLAN
---------
0) Backup your DB.
1) Clear CPL and S from your DB.
   - delete from borrowers where categorycode='S';
   - delete from categories where categorycode='S';
   - delete from borrowers where branchcode='CPL';
   - delete from branch where branchcode='CPL';
2) prove t/db_dependent/Suggestions.t
   -- This should fail.
3) Apply patch
4) prove t/db_dependent/Suggestions.t
   -- This should work.
5) Intentionally add categorycode 'S' and branchcode 'CPL' back
   into the database.
6) prove t/db_dependent/Suggestions.t
   -- This should work.
7) run koha qa test tools.
8) Restore your DB :)

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 01c7c2a12904fae5076914d839c5e829c54deb6f)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
t/db_dependent/Suggestions.t