Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Bug in predefined regular expressions

[FIXED] Bug in predefined regular expressions 11 Oct 2012 18:44 #4420

  • aria
  • aria's Avatar
  • Offline
  • New Member
  • Posts: 16
  • Thank you received: 3
  • Karma: 2
When i add a text field to a form and try to set a regular expression 'username' several options are greyed out. So i cannot set the 'Invert match'. It is set to on.
Trying in 'Preview and test' it works as i expected. But when i run in sandbox the inverted in set on. And i cannot enter a correct username.
I think the grayed out field 'Invert match' must be set to off.
The administrator has disabled public write access.

Re: Bug in predefined regular expressions 14 Oct 2012 09:30 #4473

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Please try and give us a bit more info about your config such as;
  • Joomla Version
  • Is the issue in sandbox or dev/live environment?
  • Cook VersionCook 1.5 or 2.0?
  • JS: JQuery or MooTools?
  • Form Style: Condensed, Exploded or JDom?
  • Features: Reduced, JDom Complete or Maximum?
  • DB Automation: Table or Model
  • Timeout: 20, 30 or 40secs
One suggestion, you might like to find and edit the file locally:
yoursite/administrator/components/[com_yourcomponent]/models/rules/username.php

Hope this helps!

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: Bug in predefined regular expressions 15 Oct 2012 09:04 #4529

  • aria
  • aria's Avatar
  • Offline
  • New Member
  • Posts: 16
  • Thank you received: 3
  • Karma: 2
Sandbox
Cook 1.5
JQuery
Condensed
Reduced
Table
For my project i have a workaround:
Set username, and after that set cusom. Then i can edit the fields

But for the bug it remain the same. It is only a very small issue, but i think simpel to correct: The grayed out field 'Invert match' must be set to off when i choose 'username'
The administrator has disabled public write access.

Re: Bug in predefined regular expressions 15 Oct 2012 10:38 #4532

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Does it not work when you switch to custom? I mean, can you not de-select the invert checkbox then?

BTW, if this does allow you to deselect it, you should update the handler to something like customuser just in case you have reference to the original validation rule elsewhere.

Also, try removing the field from any layouts that use it and re-add them.

Hope it helps,

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.

Re: Bug in predefined regular expressions 15 Oct 2012 17:25 #4539

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Can you try again please ?

1. Refresh you page (not the cache)
2. Change the predefined regex for your field
3. Set 'username' again
4. Try in Sandbox.

Should be solved.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.081 seconds

Get Started