Bug 24772: Don't revert course item fields when deleting a course item unless it...
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 1 May 2020 15:04:21 +0000 (16:04 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 1 May 2020 15:04:21 +0000 (16:04 +0100)
commitd9013a1333ec911f7f88eef6b362f7f4df604839
tree9830e8cbb761f171b5402355c7570daa9f95ebd2
parent04813346c84157902d5926e3128ec147138cfa49
Bug 24772: Don't revert course item fields when deleting a course item unless it is enabled

Deactivating a from Course Reserves reverts Item's Shelving Location
correctly, then deleting the same course reverts the Course Reserve
Items to old shelving location values.

Test Plan:
1) Add items to a Course - make sure they all have shelving locations
prior to being added to the course.
2) When adding items change their shelving location to something else.
   See that Shelving Location has changed; permanent location in
parentheses
3) Deactivated course
   See that Shelving Location has changed back to its original location
4) Deleted course
   See that Shelving Location has changed back to what was picked during
adding it to the Course.
5) Apply this patch, restart all the things!
6) Repeat steps 1-4, note the shelvig location is not lost!

NOTE: Empty commit simply to restore the updated test plan and QA signoff

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Hannah Olsen <holsen@duncanville.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>