check for unique on create but not on update
check for unique on create but not on update
schiefersoft
Posts: 7Questions: 2Answers: 2
I have a field in the Editor:
Field::inst('users.username')->validator('Validate::notEmpty')->validator('Validate::unique'),
this works fine when I add a user.
But when I update the user the red error message "This field must have a unique value" comes on the field Username
How can I check the field "users.username" for beeing unique only at the create ?
Thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
found the solution by my self:
but where should I place $username?
I found out :)
thanks