Welcome Guest, Not a member yet? Register   Sign In
Modify multiple fields in form - CI4
#2

PHP Code:
‘is_unique[categories.category_name.'.$this->request->getVar('category_name').']‘ 

Your is_unique rule is not correct. You should exclude the current row by passing its id. Also, the parameters should be separated by a coma not a dot.

PHP Code:
‘is_unique[categories,id,'.$this->request->getVar('category_id')']’ 
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply


Messages In This Thread
RE: Modify multiple fields in form - CI4 - by includebeer - 04-13-2020, 07:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB