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

Validation rule is empty #11

Open
corleonis opened this issue Aug 17, 2011 · 0 comments
Open

Validation rule is empty #11

corleonis opened this issue Aug 17, 2011 · 0 comments

Comments

@corleonis
Copy link

I have empty validation rules array in the object parameters but I set it up in the beforeValidate method.
Because this method is not executed by the Plugin my array stays empty end therefore there is no validation JavaScript code in the page.

There is an easy fix, just run beforeValidate in the helper class:

Line: 47
$model = classRegistry::init($modelName);
$model->beforeValidate();
$arr=explode('.',$modelName);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant