Actions
Bug #27304
closedTBE_EDITOR.rawurlencode erroneously adds "=" in wizards
Start date:
2011-06-08
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
If you use a wizard for a colorpicker or a link in TYPO3 4.4.7 and 4.5.3 (haven't tested with older versions) and click on the wizard button, the current value of the field is retrieved in the window.open() function using
TBE_EDITOR.rawurlencode(document.editform['data[pages][1][tx_testextension_color]_hr'].value,200) TBE_EDITOR.rawurlencode(document.editform['data[pages][1][tx_testextension_internet]_hr'].value,200)
This returns a wrong value, because TBE_EDITOR.rawurlencode always adds a "=" in front:
- If the value is empty, "=" will be returned, resulting in a default value "http://=" in the link wizard.
- If a value is set in the color picker, e.g. "#333666", the result of TBE_EDITOR.rawurlencode will be "=#333666" in the colorpicker wizard.
TCA for the fields:
'tx_testextension_color' => Array ( 'config' => Array ( 'type' => 'input', 'size' => '30', 'max' => '7', 'eval' => 'trim', 'wizards' => array( 'colorpick' => array( 'type' => 'colorbox', 'title' => 'Color picker', 'script' => 'wizard_colorpicker.php', 'dim' => '20x20', 'tableStyle' => 'border: solid 1px black; margin-left: 20px;', 'JSopenParams' => 'height=550,width=365,status=0,menubar=0,scrollbars=1', 'exampleImg' => 'gfx/wizard_colorpickerex.jpg', ) ) ) ), 'tx_testextension_internet' => Array ( 'config' => Array ( 'type' => 'input', 'size' => '30', 'wizards' => Array( '_PADDING' => 2, 'link' => Array( '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' ), ), ) ),
Actions