Bug 20979: Fix confirm deletion popup when deleting a biblio
When deleting an empty bib, error messages pops up "1 order(s) are
using this record. You need order managing permissions to delete this
record." even though user has superlibrarian permissions. Prevents the
deletion of the bib record.
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 48cecf7935)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
6903cc0607
commit
8f8a82ae25
|
|
@ -20,8 +20,8 @@ function printBiblio() {window.print(); }
|
|||
|
||||
/* IF CAN_user_editcatalogue_edit_catalogue or ( frameworkcode == 'FA' and CAN_user_editcatalogue_fast_cataloging ) */
|
||||
|
||||
function confirm_deletion() {
|
||||
var order_manage_permission = $(this).data("order-manage");
|
||||
function confirm_deletion(link) {
|
||||
var order_manage_permission = $(link).data("order-manage");
|
||||
var is_confirmed;
|
||||
if (count > 0){
|
||||
is_confirmed = alert( MSG_DELETE_ALL_ITEMS.format(count) );
|
||||
|
|
@ -80,7 +80,7 @@ $(document).ready(function() {
|
|||
return false;
|
||||
});
|
||||
$("#deletebiblio").click(function(){
|
||||
confirm_deletion();
|
||||
confirm_deletion(this);
|
||||
return false;
|
||||
});
|
||||
$("#deleteallitems").click(function(){
|
||||
|
|
|
|||
Loading…
Reference in New Issue