Koha/koha-tmpl/intranet-tmpl/prog/js
David Cook 9d78af26d9 Bug 21556: Deleting same record twice leads to fatal software error
If you delete a record, confirm the deletion, and try to delete the
record and confirm it again befoe the first deletion completes, you'll
generate a fatal software error.

This patch unbinds the click handlers for the "Delete record" button
after the deletion is confirmed and just before the Javascript
processes the redirect to the next page in the process.

To test:
1) You will need a bibliographic record that is able to be deleted
2) Click "Edit", then "Delete record", then "OK"
3) While the browser is reloading, click "Edit", then "Delete record",
    then "OK
4) Observe a fatal error such as "Internal server error" or 'Can't call
method "holds" on an undefined value at
/home/vagrant/kohaclone/C4/Biblio.pm line 406.'
5) Apply the patch
6) Run "restart_all" on kohadevbox (or otherwise restart Plack if
    running Plack)
7) Navigate to another bibliographic record that is able to be deleted
8) Click "Edit", then "Delete record", then "OK"
9) While the browser is reloading, click "Edit", then "Delete record"
10) Observe that no fatal software error is generated
11) You are redirected to
http://localhost:8081/cgi-bin/koha/catalogue/search.pl (on kohadevbox)

Signed-off-by: Pierre-Marc Thibault <pierre-marc.thibault@inLibro.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-11-01 19:05:12 +00:00
..
pages Bug 11897: Stockrotation 2018-10-09 15:46:05 +00:00
acq.js Bug 18639: (follow-up) Populate replacement price from list price during ordering 2018-08-31 12:46:51 +00:00
acquisitions-menu.js Bug 20931: JS error "ReferenceError: $ is not defined" when CircSidebar is turned on 2018-07-02 11:10:00 +00:00
additem.js Bug 10442: Remove references to non-standard "error" class 2018-10-31 13:34:02 +00:00
admin-menu.js Bug 20931: JS error "ReferenceError: $ is not defined" when CircSidebar is turned on 2018-07-02 11:10:00 +00:00
ajax.js
audio_alerts.js Bug 16310 - Remove the use of "onclick" from audio alerts template 2016-08-01 14:35:27 +00:00
auth-finder-search.js Bug 20273: (follow-up) Autocomplete use start instead of contains 2018-07-19 17:25:16 +00:00
automatic_item_modification_by_age.js Bug 18752 - Automatic item modifications by age should allow 'blank' values 2017-06-13 16:21:37 -03:00
background-job-progressbar.js Bug 18340: Fix progress bar length 2017-05-12 08:53:57 -04:00
basket.js Bug 16575: Irregular behaviour using window.print() followed by window.location.href 2018-07-19 16:12:56 +00:00
basketgroup.js Bug 18432 : Follow up - Updating to use they/them 2017-04-21 10:56:43 -04:00
biblio_framework.js Bug 16072: Changing all instances of 'loading-small.gif' to 'spinner-small.gif' and removing loading-small.gif file. 2016-12-28 13:43:20 +00:00
cart.js Bug 19290: Browse selected bibliographic records - Staff interface 2018-02-19 16:13:30 -03:00
catalog.js Bug 21556: Deleting same record twice leads to fatal software error 2018-11-01 19:05:12 +00:00
cataloging.js Bug 19503: Duplicating a dropdown menu subfield yields an empty subfield tag 2017-10-27 13:57:10 -03:00
categories.js Bug 20781: Set a minimum enrollemnt period 'in months' of 1 2018-05-29 13:56:00 +00:00
charts.js Bug 17282: Ability to create charts for SQL reports 2018-10-01 13:56:35 +00:00
checkouts.js Bug 21562: Fix sort by checkout date in the circulation table 2018-10-26 17:09:51 +00:00
circ-patron-search-results.js Bug 20221: Fix for JavaScript error during checkout patron search 2018-02-16 13:00:57 -03:00
commons.js Bug 19290: Browse selected bibliographic records - Staff interface 2018-02-19 16:13:30 -03:00
datatables.js Bug 21506: DataTables four button pagination uses the wrong icon for First and Last buttons 2018-10-09 12:57:41 +00:00
file-upload.js
holds.js Bug 13618: (follow-up) Escape HTML chars in holds.js 2018-08-17 15:55:13 +00:00
item_search_fields.js
letter.js Bug 21216: (follow-up) Exclude some columns from export 2018-10-24 13:38:49 +00:00
localcovers.js Bug 19511: Local cover images not centered in table column in staff client search results 2018-08-21 12:48:36 +00:00
marc_modification_templates.js Bug 21186: (follow-up) Incorrect Bootstrap modal event name in multiple templates 2018-10-29 00:31:51 +00:00
marc_subfields_structure.js
members-menu.js Bug 21068: Remove NorwegianPatronDB related code 2018-08-30 13:40:29 +00:00
members.js Bug 19907: Fix email validation in patron edit form 2018-04-02 18:07:45 -03:00
merge-record.js
messaging-preference-form.js Bug 19641: Move patron templates to the footer 2018-02-15 13:30:23 -03:00
offlinecirc.js
onboarding.js Bug 19514: Add client-side check 2017-12-14 16:58:13 -03:00
prevent_submit.js
rotating-collections.js Bug 19656: Move rotating collections templates JS to the footer 2017-12-11 11:34:22 -03:00
serials-toolbar.js Bug 20778: (bug 19777 follow-up) Fix subscription deletion 2018-06-08 09:48:12 -04:00
showpredictionpattern.js Bug 19778: Move template JavaScript to the footer: Serials, part 4 2017-12-14 16:58:13 -03:00
sms_providers.js Bug 17012 - Remove more event attributes from administration templates 2016-09-09 13:29:52 +00:00
staff-global.js Bug 20217: Make header's catalog search menu into a split button 2018-09-16 00:27:50 +00:00
subscription-add.js Bug 19778: Move template JavaScript to the footer: Serials, part 4 2017-12-14 16:58:13 -03:00
table_filters.js Bug 9573: Lost items report - add KohaTable to itemlost 2018-02-17 18:32:14 -03:00
tools-menu.js Bug 11897: (QA follow-up) Update of tools-menu.js 2018-10-09 15:46:08 +00:00
xmlControlfield.js
z3950_search.js Bug 16072: Changing all instances of 'loading-small.gif' to 'spinner-small.gif' and removing loading-small.gif file. 2016-12-28 13:43:20 +00:00