[eluser]promo[/eluser]
Hum str_replace in the form juste before set_value() ?
I used
Code:
$this->form_validation->set_rules('name', 'Nom', 'trim|htmlspecialchars|required|is_unique[cmd_editors.editors_name]|');
But when name is already in database, the double quotes are displayed as " in the input name.
So I think it's maybe a CI configuration/used function use mistake ?
In documentation
Quote:Note: You will generally want to use the prepping functions after the validation rules so if there is an error, the original data will be shown in the form.
But if I use prepping function after validation, my result will be edited before insert in the database thus when I will resubmit the same value, the is_unique function will not run.
is_unique will compare
to
Code:
hello " you "
and will return false....