⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

set_rules: is_unique[...] forces Error on Update



DirectWeb
  • profile picture
  • Member

Posted 26 March 2012 - 12:10 PM

Hi everyone,
I've declared a rule to set a unique name like so:

->set_rules('name', 'Name', 'is_unique[table.name]')


on the insert-event that works fine.
on the update-event it forces an error because there is already an entry with this name (that one I'm dealing with).

Are there any suggestions?

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 26 March 2012 - 19:04 PM

/topic/71-different-form-validation-rules-for-insert-and-update/page__view__findpost__p__262