[BUGFIX] Mark changes in `selectMultipleSideBySide` 57/59057/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:32:29 +0000 (20:32 +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/59057
Reviewed-by: Richard Haeser <richard@maxserv.com>
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Tested-by: Richard Haeser <richard@maxserv.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 698053b..25136c6 100644 (file)
@@ -616,6 +616,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();
         }
       }