Server side form validation returning wrong error class on div.form-group

Issue #22 resolved
Morgan Paki created an issue

Hi there,

I noticed when using your awesome bootstrap 3 module that the div.form-group error class was being set as 'error' instead of 'has-error'.

Not sure whether this is the best fix as I am a newbie to yii and your module but I made these changes to BSHtml.php on line 1754.

if (!empty($color)) { // CHANGE Add proper form-group styling if($color == 'success') self::addCssClass('has-success', $groupOptions); else if ($color == 'error') self::addCssClass('has-error', $groupOptions); else self::addCssClass($color, $groupOptions); }

Hope this helps.

Cheers, Morgan

Comments (3)

  1. Log in to comment