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

Lucas Gass <lu...@bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #165331|0                           |1
        is obsolete|                            |

--- Comment #17 from Lucas Gass <lu...@bywatersolutions.com> ---
Created attachment 165339
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=165339&action=edit
Bug 30123: Set desk default to logged-in-desk-id on sety library page

This patch refactors the javascript that runs on the set library page. If the
logged in user branch code is the same as the seleceted library, default the
desk selection to the current logged in desk id. Otherwise set the default desk
selection to the first option for the current branch.

Test plan:

1. Turn on UseCirculationDesks
2. Create a few desks with unique names for a few different libraries
3. Set your library and desk
4. Reload set-library.pl and notice that the desk always defaults to the last
option for the library selected
5. Apply patch and restart_all
6. Reload set-library.pl and notice that the desk selection defaults to your
current logged in desk
7. Try changing the library selection to libraries with and without desks
8. Notice that the desk selection defaults to the first option available for
the selected library
9. Notice that the desk selection defaults to the --- no desk for libraries
without desks
10. Notice the desk selection defaults to the currenty logged in desk if you
select the library you are currently logged into

Signed-off-by: Lucas Gass <lu...@bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to