Closed pavimus closed 11 years ago
Unable to reproduce.
Also the provided code fix actually changes nothing.
Please take look at CHtml::resolveName function. it can modify $attribute argument, that is passed by reference. In tabular input $attribute is something like '[0]value'. After calling $name=self::resolveName($model,$attribute); $attribute will be changed to 'value'. In non-fixed version if $htmlOptions has no 'for' key, the $attribute will be translated from '[0]value' to 'value', if $htmlOptions has 'for' key - $attribute will stay unmodified, because CHtml::resolveName will not be called.
Issue reproduced.
Solution confirmed
Fix has been prepared. Switching to milestone 1.1.14
currently activeLabel generates wrong label for tabular input if 'for' html option specified. It generates something '[0]value' instead 'Value'. To fix this problem, CHtml::activeLabel must be changed from
to