js_validate
js_validate copied to clipboard
Validation rule is empty
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);