Fixed bug #2052: Color picker does not work properly in flex forms. Thanks to David...
authorAndreas Otto <andreas.otto@dkd.de>
Wed, 9 May 2007 07:03:26 +0000 (07:03 +0000)
committerAndreas Otto <andreas.otto@dkd.de>
Wed, 9 May 2007 07:03:26 +0000 (07:03 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-0@2329 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tceforms.php

index dfafd4f..ecbccba 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-05-09  Andreas Otto  <andreas.otto@dkd.de>
+
+       * Fixed bug #2052: Color picker does not work properly in flex forms. Thanks to David Bruehlmeier for providing a patch and a testcase.
+
 2007-04-28  Andreas Otto  <andreas.otto@dkd.de>
 
        * Fixed bug #3649: Call to a member function formWidth() on object $GLOBALS['TBE_TEMPLATE'] instead on $GLOBALS['SOBE'].
index c70c9a8..94f9d18 100755 (executable)
@@ -3297,12 +3297,12 @@ class t3lib_TCEforms    {
                                                $dim = t3lib_div::intExplode('x',$wConf['dim']);
                                                $dX = t3lib_div::intInRange($dim[0],1,200,20);
                                                $dY = t3lib_div::intInRange($dim[1],1,200,20);
-                                               $color = $row[$field] ? ' bgcolor="'.htmlspecialchars($row[$field]).'"' : '';
+                                               $color = $PA['itemFormElValue'] ? ' bgcolor="'.htmlspecialchars($PA['itemFormElValue']).'"' : '';
                                                $outArr[] = '<table border="0" cellpadding="0" cellspacing="0" id="'.$md5ID.'"'.$color.' style="'.htmlspecialchars($wConf['tableStyle']).'">
                                                                        <tr>
                                                                                <td>'.
                                                                                        $colorBoxLinks[0].
-                                                                                       '<img src="clear.gif" width="'.$dX.'" height="'.$dY.'"'.t3lib_BEfunc::titleAltAttrib(trim($iTitle.' '.$row[$field])).' border="0" />'.
+                                                                                       '<img src="clear.gif" width="'.$dX.'" height="'.$dY.'"'.t3lib_BEfunc::titleAltAttrib(trim($iTitle.' '.$PA['itemFormElValue'])).' border="0" />'.
                                                                                        $colorBoxLinks[1].
                                                                                        '</td>
                                                                        </tr>