Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TbActiveForm seems to ignore passed errorMessageCssClass #277

Open
bitlight opened this issue Oct 2, 2014 · 1 comment
Open

TbActiveForm seems to ignore passed errorMessageCssClass #277

bitlight opened this issue Oct 2, 2014 · 1 comment
Assignees
Labels

Comments

@bitlight
Copy link

bitlight commented Oct 2, 2014

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;
    
@crisu83
Copy link
Owner

crisu83 commented Oct 3, 2014

Any chance that you could do this as a PR?

@crisu83 crisu83 self-assigned this Feb 11, 2015
@crisu83 crisu83 added the bug label Feb 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants