Bugzilla – Attachment 186823 Details for
Bug 40859
Item deletion is broken when using the linktools button
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40859: (QA follow-up) Remove unnecessary alert
Bug-40859-QA-follow-up-Remove-unnecessary-alert.patch (text/plain), 1.84 KB, created by
Matt Blenkinsop
on 2025-09-23 15:36:43 UTC
(
hide
)
Description:
Bug 40859: (QA follow-up) Remove unnecessary alert
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2025-09-23 15:36:43 UTC
Size:
1.84 KB
patch
obsolete
>From a022704550c5accb8f21a46668dce31239a0b85a Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> >Date: Tue, 23 Sep 2025 16:35:23 +0100 >Subject: [PATCH] Bug 40859: (QA follow-up) Remove unnecessary alert > >--- > .../prog/js/cataloging_additem.js | 18 ++++++++---------- > 1 file changed, 8 insertions(+), 10 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js >index 266d2af60e3..1de2bda6e12 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js >@@ -153,18 +153,16 @@ $(document).ready(function () { > > $(document).on("click", ".delete", function (e) { > e.preventDefault(); >- if (confirmDelete(MSG_CONFIRM_DELETE_ITEM)) { >- var itemnumber = $(this).data("itemnumber"); >- var hasSerialItem = $(this).data("has-serial-item"); >+ var itemnumber = $(this).data("itemnumber"); >+ var hasSerialItem = $(this).data("has-serial-item"); > >- $("#delete-item-itemnumber").val(itemnumber); >- $("#delete_associated_serial_issues").attr("checked", false); >- $("#delete-item-modal-btn-submit").data("item", itemnumber); >- if (!hasSerialItem) { >- $(".form-group").hide(); >- } >- $("#delete-item-modal").modal("show"); >+ $("#delete-item-itemnumber").val(itemnumber); >+ $("#delete_associated_serial_issues").attr("checked", false); >+ $("#delete-item-modal-btn-submit").data("item", itemnumber); >+ if (!hasSerialItem) { >+ $(".form-group").hide(); > } >+ $("#delete-item-modal").modal("show"); > }); > $(document).on("click", "#delete-item-modal-btn-submit", function (e) { > e.preventDefault(); >-- >2.50.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40859
:
186783
| 186823