⚠ 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

Problem with unique rule (v.1.3.3)



Trần Đình Trọng

Trần Đình Trọng
  • profile picture
  • Member

Posted 23 April 2013 - 09:47 AM

I have a table with 2 unique feild : username & email.

My code :

$crud->set_rules('username','Tên đăng nhập','is_unique[tblpersonnels.username]');
//Tên đăng nhập is Username(Vietnamese)

Add action is ok, but edit action is report unique error, while i am not change username or email in this feild.

 

Thanks