Skip to content

Static Error Message in RangeValidator #45

Description

@ClemMahe

Hi,

In the class "RangeValidator", there is a static class variable called "mErrorMessage".
It shouldn't be static as if you have multiple "RangeValidator", it will only keep the last value.

In my case i had 3 RangeValidator and the same message was displayed three times. Removing "static" modifier fix the issue.

Actually, i'm also wondering why "getMessage" is overrided in "RangeValidator" while it is not in others validators. :)

Regards,
Clément.

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