Skip to content

Validations Error Required False #142

Closed

Description

@javiercornejo

When you setup a field with "required: false" the ORM still verify if (for example) the email patterns is correct and it doesn't save when the field is empty or undefined.

[Error: no-pattern-match]
  field: 'email',
  value: undefined,
  required: false

I dont know to solve it.

Activity

  1. dresende commented on May 2, 2013

    @dresende
    Owner

    I'll look into it.

  2. dresende commented on May 2, 2013

    @dresende
    Owner

    You made me stumble on another bug :)

    According to your error description, you have a pattern validation which is the one causing the error. I'm going to post a commit in a few moments.

  3. dresende commented on May 2, 2013

    @dresende
    Owner

    Please try the latest commit.

  4. javiercornejo commented on May 2, 2013

    @javiercornejo
    Author

    Cool... thank you.

  5. dresende commented on May 3, 2013

    @dresende
    Owner

    Does it work for you now?

  6. javiercornejo commented on May 6, 2013

    @javiercornejo
    Author

    Yes it work perfect. Thank You.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions