• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Validation Placeholders being ignored for is_unique

#1
https://codeigniter4.github.io/CodeIgnit...aceholders

PHP Code:
protected $validationRules = [
 
   'email' => 'required|valid_email|is_unique[users.email,id,{id}]'
]; 

looking at the is_unique method in Rules.php it does not appear {id} is being converted to it's corresponding value in $data.

Thanks,
Kyle
Reply


Messages In This Thread
Validation Placeholders being ignored for is_unique - by NiteRaven - 11-26-2018, 11:31 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.