[Koha-bugs] [Bug 15530] Editing a course item via a disabled course disables it even if it is on other enabled courses

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 8 18:05:14 CET 2016


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15530

--- Comment #4 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 46446
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=46446&action=edit
Bug 15530 - Editing a course item via a disabled course disables it even if it
is on other enabled courses

It appears that if the course item is edited by clicking the edit link
from an active course, the course item will be set to enabled and the
fields will be swapped, if the same course item is edited from a course
that is *not* active, the course item will be set to *not* enabled, and
the original fields will be swapped back in!

The short term work-around is to only edit course items from an enabled
course if the item has a course that is enabled. If all the courses it
is on are disabled, it doesn't matter what course the item is edited
from.

Test Plan:
1) Create two courses, 1 enabled and 1 disabled
2) Add an item as a course reserve to both courses
3) Edit the course reserve data for the item via the enabled course
4) Note the course item is enabled ( easy way is to check the database )
5) Edit the same course reserve data, but via the disabled course
6) Note the course item is now disabled even though it is part of
   an enabled course!
7) Apply this patch
8) Repeat steps 1 through 5
9) Note the course item is still enabled

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


More information about the Koha-bugs mailing list