Commit 2aba5d86 by niskac

fixed a textfield validation issue (fixes #64)

parent b62b5557
...@@ -259,7 +259,7 @@ abstract class BootInput extends CInputWidget ...@@ -259,7 +259,7 @@ abstract class BootInput extends CInputWidget
*/ */
protected function getContainerCssClass() protected function getContainerCssClass()
{ {
if ($this->model->hasErrors($this->attribute)) if ($this->model->hasErrors(CHtml::resolveName($this->model, $this->attribute)))
return CHtml::$errorCss; return CHtml::$errorCss;
else else
return ''; return '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment