]> git.koha-community.org Git - koha.git/commit
Bug 24522: Show alert when trying to add nothing to a list in staff
authorOwen Leonard <oleonard@myacpl.org>
Fri, 1 May 2020 13:23:12 +0000 (13:23 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 15 May 2020 20:16:00 +0000 (20:16 +0000)
commit341fa8a59ddba280e599ba2ea857b9025c4cb69f
treebc9dcad3a22668f1f84e4f51c32537b26914b58e
parent62e523a50f8e9e370e9b10c106e7af71cbe25976
Bug 24522: Show alert when trying to add nothing to a list in staff

This patch modifies the JavaScript which handles the process of adding
items to a list in the staff client. Error-handling is added in the case
when a set of biblionumbers hasn't been passed to the vShelf function.

To test, apply the patch and perform a catalog search in the staff
client.

On the search results page, select any list from the "Add to list" menu
at the top of the search results table without checking any checkboxes.

You should get an alert, "No item was selected."

Also test that adding to a list works correctly after selecting one or
more titles.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 9be2c20c461382ebb6ebed0482b16f3d066c2ea0)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/js/basket.js