Skip to content

Unique validator custom message not working #106

Open

Description

@nockhigan

What are the steps to reproduce this issue?

  1. Set a unique constraint on field in a model and set a custom error message for that constraint
  2. Try to enter a non-unique value into that field

What happens?

Receive the error "Complex object types cannot be converted to simple values. " from line 216 of the validationResult.cfc.

Note: you must use UniqueValidatorMessage instead of UniqueMesssage

What were you expecting to happen?

To receive the custom error message.

Any logs, error output, etc?

…

Any other comments?

…

What versions are you using?

4.8.0

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions