[Koha-bugs] [Bug 19636] Hold priority changes incorrectly via dropdown select

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 16 13:41:37 CET 2017


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

--- Comment #1 from Lari Taskula <lari.taskula at jns.fi> ---
Created attachment 69180
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=69180&action=edit
Bug 19636: Hold priority changes incorrectly via dropdown select

This patch sorts holds in UI after priority is changed via "Priority" dropdown.

It fixes confusion where the form is posted and each row is individually
processed
one by one - and due to conflict in priority value, the latter row always gets
the chosen value instead of what the user actually might have wanted to change.

To reproduce:
1. Place 3 holds on a record
2. See existing holds (cgi-bin/koha/reserve/request.pl?biblionumber=XXX)
3. By using the dropdown menu under "Priority" column, change the first hold's
   priority to last (3). Do not touch other priorities.
4. Click Update hold(s)
5. Observe the hold did not get your selected priority 3, but 2 instead.

To test:
1. Apply patch
2. Place 3 holds on a record
3. See existing holds (cgi-bin/koha/reserve/request.pl?biblionumber=XXX)
4. By using the dropdown menu under "Priority" column, change the first hold's
   priority to last (3). Do not touch other priorities.
5. Observe this hold was automatically moved to the last row in the user
   interface.
6. Click Update hold(s)
7. Observe the hold has your selected priority 3.

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


More information about the Koha-bugs mailing list