Bug #50877
closedFile not saved in link field after being uploaded in link selector
0%
Description
Situation:¶
Userrights: All (Admin)
Browsers: All
TCEforms with following field configuration: 'media' => array(
'exclude' => 1,
'label' => 'Media',
'config' => array(
'type' => 'input',
'size' => '48',
'max' => '255',
'checkbox' => '',
'eval' => 'trim',
'wizards' => array(
'_PADDING' => 2,
'link' => array(
'params' => array(
'blindLinkOptions' => 'mail,spec,folder,page',
'allowedExtensions' => 'jpg,jpeg,gif,png'
),
'type' => 'popup',
'title' => 'Link',
'icon' => 'link_popup.gif',
'script' => 'browse_links.php?mode=wizard',
'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'
)
)
)
),
Steps to reproduce this Bug:¶
- Click on link symbol next to text field
- Select the folder you want to upload your file to
- Upload a new file
- After the upload completed successfully select the new file
- After the wizard popup closed and you see the link to the uploaded file, save the record.
- After the record was saved, the input field is empty
It seems to be a JavaScript problem. After selecting the newly uploaded file, the Path to the file is inserted into the visible input field but not the hidden field which will actually be saved.