Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • aria
  • aria's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 3
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.

Please Log in or Create an account to join the conversation.

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

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
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!!!

Please Log in or Create an account to join the conversation.

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

  • aria
  • aria's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 16
  • Thank you received: 3
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'

Please Log in or Create an account to join the conversation.

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

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
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!!!

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.069 seconds
Je suis vraiment impressionné par la puissance de COOK et encore plus admiratif de ton travail. A ce jour je crois que c'est ce que j'ai vu de plus abouti dans le domaine de la conception d'extension pour Joomla!
felichon (Forum)  

Get Started