Support forums : You can see the bug

regex required when field is not

A red message that stops the whole page from loading; a full page, but a message that looks like it came from the server; a red box with red text that we made: All of these are bugs you can see, so report them here. kthxbai :)

Moderator: Dracones

Forum rules
Can you copy/paste the error message, or do a screenshot that shows what is wrong? If not maybe you've got a "you can sense it" bug.

regex required when field is not

Postby EdB » Sun Mar 31, 2013 7:02 pm

Add a plugin field with GetDefaultUserSettings, make the defaultvalue be '', and give it a valid_pattern - core will throw an error upon user update if the field is left at the default value. It still does the update - just gives the user an error message box.

Solution to me would be to (at the very least) allow empty fields. Better solution would be to allow whatever is default for that field to pass even if it doesn't pass the regex test.
User avatar
Posts: 2072
Joined: Sun Nov 22, 2009 7:20 am
Location: Maricopa Arizona

Return to You can see the bug

Who is online

Users browsing this forum: No registered users and 3 guests