From 7a91edcf5e685e3fb790f12570df63492a8e12f9 Mon Sep 17 00:00:00 2001 From: Zauberfisch Date: Thu, 15 Apr 2021 08:14:33 +0200 Subject: [PATCH] FIX: ArrayListFIeld only allow adding one row at the same time to fix invalid ids --- javascript/ArrayListField.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/javascript/ArrayListField.js b/javascript/ArrayListField.js index a4b7567..48e6a75 100644 --- a/javascript/ArrayListField.js +++ b/javascript/ArrayListField.js @@ -38,6 +38,9 @@ }); $('.zauberfisch\\\\SerializedDataObject\\\\Form\\\\ArrayListField .add-record').entwine({ onclick: function () { + if (this.hasClass('loading')) { + return false; + } var field = this.getContainerField(), recordList = field.getRecordList(), _this = this,