Hello,
if, on an insert form, the user clicks multiple times the save button (and/or the enter button), multiple records will be inserted.
This is a quick patch, only tested on V 11.12, which should avoid the problem
Open include/header.php and after the first occurrence of
Add this code:
This patch doesn't fix multiple submissions in this case, though: If you have duplication check enabled for a form, some potential duplications are found and the user clicks multiple times on "insert anyway".
Additional tests will be performed and an official fix (including the "insert anyway" case) will be available in the next release of DaDaBIK.
Best,
if, on an insert form, the user clicks multiple times the save button (and/or the enter button), multiple records will be inserted.
This is a quick patch, only tested on V 11.12, which should avoid the problem
Open include/header.php and after the first occurrence of
Code:
$(document).ready(function() {
Add this code:
Code:
var dadabik_main_form_submission_enabled = true;
$('#dadabik_main_form').on('submit', function(e){
if (dadabik_main_form_submission_enabled === true){
dadabik_main_form_submission_enabled = false;
}
else{
e.preventDefault();
}
});
This patch doesn't fix multiple submissions in this case, though: If you have duplication check enabled for a form, some potential duplications are found and the user clicks multiple times on "insert anyway".
Additional tests will be performed and an official fix (including the "insert anyway" case) will be available in the next release of DaDaBIK.
Best,