crisu83/yiistrap — pull request #280 by bitlight (2014-10-28 09:39:35+00:00)
Title: TbActiveForm seems to ignore passed errorMessageCssClass

Here's the fixing patch

--- TbActiveForm.php 2014-09-08 16:19:19.000000000 +0200
+++ "TbActiveForm fixed.php" 2014-09-16 16:58:20.000000000 +0200
@@ -720,7 +723,7 @@
$error = $this->error($model, $attribute, $errorOptions, $enableAjaxValidation, $enableClientValidation);
// kind of a hack for ajax forms but this works for now.
if (!empty($error) && strpos($error, 'display:none') === false) {
\- $options['color'] = TbHtml::INPUT_COLOR_ERROR;
\+ $options['color'] = $this->errorMessageCssClass;
}
if (!$this->hideInlineErrors) {
$options['error'] = $error;