FriendsOfTYPO3 / compatibility6

Allow TYPO3 CMS 7 installations deal with compatibility problems while upgrading from v6.2 to v7
18 stars 11 forks source link

Wizards in Flexforms #4

Closed Diologenes closed 6 years ago

Diologenes commented 8 years ago

First of all, thanks for the extension! ;-) But I found an issue with compatibility6 in combination with Wizards in Flexforms.

If you are using a wizard like the colorpicker or wizard_link (https://docs.typo3.org/typo3cms/TCAReference/AdditionalFeatures/CoreWizardScripts/Index.html) the value which you selected by the wizard will not be saved.

For some reason the selected value is not applied to the hidden field in the backend.

Here's some example: If you normally type in some value to the visible backend field manually, this data is applied to the hidden field "on blur". This behaviour does not happen when you are using the wizard.

<!-- HERE IS THE VISIBLE BACKEND FIELD -->
<div class="form-wizards-wrap form-wizards-aside">
                    <div class="form-wizards-element">
            <div class="form-control-clearable">
<input type="text" data-formengine-validation-rules="[{&quot;type&quot;:&quot;trim&quot;,&quot;config&quot;:{&quot;type&quot;:&quot;input&quot;,&quot;size&quot;:&quot;15&quot;,&quot;max&quot;:&quot;15&quot;,&quot;wizards&quot;:{&quot;colorChoice&quot;:{&quot;type&quot;:&quot;colorbox&quot;,&quot;dim&quot;:&quot;6x6&quot;,&quot;tableStyle&quot;:&quot;border:solid 1px black;&quot;,&quot;JSopenParams&quot;:&quot;height=440,width=500,status=0,menubar=0,scrollbars=1&quot;,&quot;module&quot;:{&quot;name&quot;:&quot;wizard_colorpicker&quot;}}}}}]" data-formengine-input-params="{&quot;field&quot;:&quot;data[tt_content][14][pi_flexform][data][sDEF][lDEF][textcolor][vDEF]&quot;,&quot;evalList&quot;:&quot;trim&quot;,&quot;is_in&quot;:&quot;&quot;}" data-formengine-input-name="data[tt_content][14][pi_flexform][data][sDEF][lDEF][textcolor][vDEF]" id="formengine-input-57c5389532a4e903885688" value="" maxlength="15" class="form-control t3js-clearable hasDefaultValue"><button type="button" class="close" tabindex="-1" aria-hidden="true" style="display: none;">
<span class="fa fa-times"></span>
</button>

</div>
<!-- HERE IS THE HIDDEN BACKEND FIELD WHICH IS NOT AFFECTED WHEN USING A WIZARD -->
<input type="hidden" name="data[tt_content][14][pi_flexform][data][sDEF][lDEF][textcolor][vDEF]" value=""></div>

...

This behaviour only exists if compatibility6 is installed. Can someone confirm this bug?

IchHabRecht commented 6 years ago

Issue should be solved with merge of #9