[BUGFIX] Mark changes in `selectMultipleSideBySide` 56/59056/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 7 Dec 2018 18:50:39 +0000 (19:50 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 7 Dec 2018 19:04:36 +0000 (20:04 +0100)
A `selectMultipleSideBySide` field is now marked as "changed" when either
the order of items has changed or when an item has been removed.

Resolves: #87082
Releases: master, 8.7
Change-Id: I9f50576270db667751c14e3513d1a7cd31c1135e
Reviewed-on: https://review.typo3.org/59056
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/backend/Resources/Public/JavaScript/FormEngine.js

index 2477b03..6fa597b 100644 (file)
@@ -633,6 +633,7 @@ define(['jquery',
         FormEngine.updateHiddenFieldValueFromSelect($listFieldEl, FormEngine.getFieldElement(fieldName));
         FormEngine.legacyFieldChangedCb();
         if (typeof FormEngine.Validation !== 'undefined' && typeof FormEngine.Validation.validate === 'function') {
+          FormEngine.Validation.markFieldAsChanged($listFieldEl);
           FormEngine.Validation.validate();
         }
       }