Skip to content

Validation rule is empty  #11

Description

@corleonis

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions