Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribut Value Validate Regex not executed #265

Open
rmoecklideveloper opened this issue Jul 27, 2022 · 3 comments
Open

Attribut Value Validate Regex not executed #265

rmoecklideveloper opened this issue Jul 27, 2022 · 3 comments

Comments

@rmoecklideveloper
Copy link

Version: pim: 1.5.48, core: 1.4.78
When adding an regular expression to a Attribut with type string, the given value in the product detail page is not getting validated.
Example:
Attribut, string
Regex: /\d\d[.]\d/
Value inserted: string
saved, no issue

Regex in general works, as when you remove the regex from the attribute and set it again, then the system recognizes that there are inproper values in the attribute values. So regex validation just happens while the attribute is saved, not when value is saved.
I guess this behaviour is not intended.

@PlasticSound
Copy link

You may should change your RegEx as follows: /^\d\d[.]\d$/

@rmoecklideveloper
Copy link
Author

It's not about the regex, it's about when it fires

@rmoecklideveloper
Copy link
Author

Version 1.10.19
When creating a attribut with a regexstring, let's say super simple [A-Z] than it's possible to save the attribute. Now edit the attribute, delete the regex, save. Now try to add a regex string: Fehler 400: Dieses REGEX-Muster ist nicht gültig.
Doesn't matter what I enter, it's not possible to save. In the Help Center I can also not find anything about regex. A field that is not supported anymore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants