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
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
background-job-progressbar.js
basket.js Bug 16575: Irregular behaviour using window.print() followed by window.location.href 2018-07-19 16:12:56 +00:00
basketgroup.js
biblio_framework.js
cart.js
catalog.js Bug 21556: Deleting same record twice leads to fatal software error 2018-11-01 19:05:12 +00:00
cataloging.js
categories.js
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
commons.js
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
merge-record.js
messaging-preference-form.js
offlinecirc.js
onboarding.js
prevent_submit.js
rotating-collections.js
serials-toolbar.js
showpredictionpattern.js
sms_providers.js
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
table_filters.js
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