Bug 22630: Allow to change homebranch in course reserves
commit605d6c9b6ef6cb6ee3bd10a5d418ca9871f69e13
authorJulian Maurice <julian.maurice@biblibre.com>
Wed, 3 Apr 2019 12:49:00 +0000 (3 14:49 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 29 Apr 2020 16:07:52 +0000 (29 17:07 +0100)
treec784fad0458be5f096e3fa6410d50041583cab44
parent3ecc5d59fe05c70b34a70afd788dc0a1b612f064
Bug 22630: Allow to change homebranch in course reserves

Test plan:
1. Create a course (disabled)
2. Add a reserve to this course for an item and set a homebranch
   different from the item's homebranch
3. Enable the course
4. Verify that the item's homebranch has changed
5. Disable the course
6. Verify that the item's homebranch was reset to its initial value
7. prove t/db_dependent/CourseReserves/CourseItems.t

Sponsored-by: Université de Lyon 3
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Sonia Bouis <sonia.bouis@univ-lyon3.fr>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/CourseReserves.pm
course_reserves/add_items.pl
installer/data/mysql/atomicupdate/bug-22630.perl [new file with mode: 0644]
installer/data/mysql/kohastructure.sql
koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/add_items-step2.tt
koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt
t/db_dependent/CourseReserves/CourseItems.t