[Koha-bugs] [Bug 17916] "Delete MARC modification template" fails to actually delete it

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 25 15:44:46 CEST 2017


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

Alex Buckley <alexbuckley at catalyst.net.nz> changed:

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

--- Comment #3 from Alex Buckley <alexbuckley at catalyst.net.nz> ---
Created attachment 62680
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=62680&action=edit
Bug 17916 - "Delete MARC modification template" fails to actually delete it

The MARC modification templates' 'Delete' button fails because the event
handler has a "preventDefault" but the outcome of the confirmation
function must return true or false.

This patch removes the "preventDefault" from the .delete_template click
handler as well as a redundant onclick attribute from the delete link
itself.

To test, apply the patch and go to Tools -> MARC modification templates.
Clicking the delete button for any existing template should work
correctly.

Followed test plan, worked as intended

Signed-off-by: Alex Buckley <alexbuckley at catalyst.net.nz>

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


More information about the Koha-bugs mailing list