Bugzilla – Attachment 101966 Details for
Bug 24386
Double submit should be prevented when adding to a basket
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24386: Prevent double form submission on adding orders to basket from a file
Bug-24386-Prevent-double-form-submission-on-adding.patch (text/plain), 1.75 KB, created by
Jonathan Druart
on 2020-03-27 08:36:07 UTC
(
hide
)
Description:
Bug 24386: Prevent double form submission on adding orders to basket from a file
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-03-27 08:36:07 UTC
Size:
1.75 KB
patch
obsolete
>From 85d776a4f4910e53665d429de9608bcbdd8dacf0 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 9 Jan 2020 15:53:45 +0000 >Subject: [PATCH] Bug 24386: Prevent double form submission on adding orders to > basket from a file > >To test: > 1 - Have a marc record file > 2 - Go to Acquisitions, find a vendor, then an open basket > 3 - Add to basket from a new file (if you already have one staged you can choose that instead) > 4 - Import the file, then add to basket > 5 - On the page where you select the records and set info select a record, set matching to 'Do not check' fill in the fund for the order > 6 - When ready, click save as many times as you can > 7 - When you go to the basket there are many copies of the order added > 8 - Don't despair, apply the patch > 9 - Repeat above >10 - When ready to add orders, click furiously >11 - The order is only added once! >12 - Success! > >Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js b/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js >index f944386734..5c10241769 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/addorderiso2709.js >@@ -1,6 +1,7 @@ > /* global dataTablesDefaults ERR_NO_RECORD_SELECTED ERR_INVALID_QUANTITY ERR_FUNDS_MISSING MSG_LOADING */ > > $(document).ready(function() { >+ $("#Aform").preventDoubleFormSubmit(); > $("#files").dataTable($.extend(true, {}, dataTablesDefaults, { > "aoColumnDefs": [ > { "bSortable": false, "bSearchable": false, 'aTargets': [ 'NoSort' ] }, >-- >2.20.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 24386
:
97106
|
101875
| 101966