diff --git a/typo3/sysext/backend/Resources/Public/JavaScript/FormEngine.js b/typo3/sysext/backend/Resources/Public/JavaScript/FormEngine.js index 1ea5529f843b34a71ad158144f4d96b0cc051b70..f6ff5f2b8b4c19abd26cdd20132e7286278621cb 100644 --- a/typo3/sysext/backend/Resources/Public/JavaScript/FormEngine.js +++ b/typo3/sysext/backend/Resources/Public/JavaScript/FormEngine.js @@ -133,6 +133,13 @@ define(['jquery', if (isMultiple || isList) { // If multiple values are not allowed, clear anything that is in the control already if (!isMultiple) { + var $availableFieldEl = FormEngine.getFieldElement(fieldName, '_avail'); + $fieldEl.find('option').each(function() { + $availableFieldEl + .find('option[value="' + $.escapeSelector($(this).attr('value')) + '"]') + .removeClass('hidden') + .prop('disabled', false); + }); $fieldEl.empty(); }