Issue Bug Closed

#72200Folder selection wizard uses wrong syntax for selected value

Antoine Bouet 12/14/15, 10:49 updated 05/07/19, 12:17

Description

Hi all,

With this code above, the wizard create the string “file:1:/user_upload/my_folder/” in the field.
But when I save the content, nothing is saved.

If I put manually “/user_upload/my_folder/”, it works.

Why ? :(

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
    <meta>
        <langDisable>1</langDisable>
    </meta>
    <sheets>
        <sDEF>
            <ROOT>
                <TCEforms>
                    <sheetTitle>LLL:EXT:my_ext/Resources/Private/Language/locallang_db.xlf:flexforms_tab.settings</sheetTitle>
                </TCEforms>
                <type>array</type>
                <el>
                    <settings.folder>
                        <TCEforms>
                            <label>LLL:EXT:my_ext/Resources/Private/Language/locallang_db.xlf:flexform.folder</label>
                            <config>
                                <type>input</type>
                                <size>30</size>
                                <eval>trim</eval>
                                <wizards>
                                    <_PADDING>2</_PADDING>
                                    <link>
                                        <type>popup</type>
                                        <title>Link</title>
                                        <icon>link_popup.gif</icon>
                                        <module type="array">
                                            <name>wizard_element_browser</name>
                                            <urlParameters type="array">
                                                <mode>wizard</mode>
                                                <act>folder</act>
                                            </urlParameters>
                                        </module>
                                        <params>
                                            <blindLinkOptions>page,file,mail,url,spec</blindLinkOptions>
                                        </params>
                                        <JSopenParams>height=500,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
                                    </link>
                                </wizards>
                            </config>
                        </TCEforms>
                    </settings.folder>
                </el>
            </ROOT>
        </sDEF>
    </sheets>
</T3DataStructure>

Reviews 1