1. Christoffer Niska
  2. yii-bootstrap
  3. Pull requests

Pull requests

#33 Merged
Repository
negge
Branch
default
Repository
crisu83
Branch
default

fixed label association when input has a user-defined id attribute (fixes #72)

Author
  1. Sam Stenvall
Reviewers
Description

The "for" attribute on labels is wrong if "id" is specified in htmlOptions. This pull request corrects that.

Example:

<?php echo $form->checkboxRow($model, 'checkbox', array('id'=>'rememberMe); ?>

Before this fix, the input would have id="rememberMe" but the label would have something like for="Form_checkbox".

Comments (0)