[TYPO3-core] RFC #12326: EXT:setup CSH mode setting gets lost

Christian Kuhn lolli at schwarzbu.ch
Sat Oct 24 11:12:14 CEST 2009


Hey,

Steffen Gebert wrote:
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=12326
> 
> Branches: trunk
> 
> Problem:
> foreach ($config['items'] as $key => $value) {
>   $html .= '<option value="' . $key . '"' .
>     ($value == $key ? ' selected="selected"' : '') .
>     '>' . $this->getLabel($value,'',false) . '</option>' . chr(10);
> }
> 
> Solution:
> Rename $value $to label, as $value already holds the saved value, we
> have to compare with $key.

+1 on reading and testing.

Thanks
Christian


More information about the TYPO3-team-core mailing list