]> git.koha-community.org Git - koha.git/commit
Bug 14205: Deleting an Item/Record does not remove link to course reserve
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 4 Aug 2015 09:00:51 +0000 (10:00 +0100)
committerLiz Rea <wizzyrea@gmail.com>
Mon, 21 Sep 2015 02:16:23 +0000 (14:16 +1200)
commite2a3e25a56c64741c6ea04072b1cb2aef6aac3a8
treee0d2a201fe5530ea9747bef29cd72ec4c11ee1b6
parentf9adbd885ac9295bcdb301955e7fc785a8aa07da
Bug 14205: Deleting an Item/Record does not remove link to course reserve

A constraint is missing on the course_reserves.ci_id field.
This patch adds it and removes orphan rows.

Test plan:
0/ Don't apply the patch
1/ Login to Staff Site.
2/ Go to Course Reserves
3/ Create Course
4/ Add Reserve
5/ Go to item added (delete item/record)
6/ Refresh Course (see no items attached)
7/ Delete Course
8/ See course still listed in the courses (Not deleted)
9/ Apply the patch and execute the updatedatabase entry.
10/ Delete the Course
Note that the course has correctly been removed.

NOTE: Make sure to set the UseCourseReserves system preference to test.
      Tested before (problem existed) and after (problem solved) update.
      Dropped DB, web installed, and put in dummy data and retested.
      Problem solved.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
installer/data/mysql/atomicupdate/bug_14205-add_fk_course_reserves_ci_id.sql [new file with mode: 0644]
installer/data/mysql/kohastructure.sql