]> 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)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 5 Feb 2015 17:49:02 +0000 (14:49 -0300)
commit01c7c2a12904fae5076914d839c5e829c54deb6f
treec7ea0f8e992a635373405dbf542d33c8d749089b
parentbfb035511e8afd6716ea8d1b2de966f8950b74e6
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>
t/db_dependent/Suggestions.t