Commits

Christoffer Niska committed c8dc14b

fixed a textfield validation issue (fixes #64)

Comments (0)

Files changed (1)

widgets/input/BootInput.php

 	 */
 	protected function getContainerCssClass()
 	{
-		if ($this->model->hasErrors($this->attribute))
+		if ($this->model->hasErrors(CHtml::resolveName($this->model, $this->attribute)))
 			return CHtml::$errorCss;
 		else
 			return '';