[Koha-bugs] [Bug 25444] Before and course reserve values are not correctly shown and data is lost

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 26 23:19:42 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25444

--- Comment #12 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 105371
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=105371&action=edit
Bug 25444: Backup/restore course items fields correctly

This patch makes the code set the *_storage fields when adding new
fields to an existing course item. And reverts those fields correctly
when removing the item from the course.

If a new field is enabled on an existing course reserve, the storage
field is not given a value, so when the item goes off reserve, the
item field will always be updated to NULL.

To test:
1. Apply the regression tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/CourseReserves/CourseItems.t
=> FAIL: Tests fail, data is not reverted correctly
3. Apply this patch and repeat 2
=> SUCCESS: Tests pass! Data is correctly reverted
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list