⚠ 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

set_relation_n_n doesn´t save



dev94
  • profile picture
  • Member

Posted 28 January 2018 - 00:51 AM

 Hi

 

I´m having a problem with set_relation_n_n, I can´t save the data. The field with relation it´s also a required field. 

 

Here´s my code 

 

$crud->set_relation_n_n('rol_nombre', 'uxr_usuarioxrol', 'rol_roles', 'uxr_id_rol', 'uxr_id_user', 'rol_nombre');     
$crud->required_fields('username','activated','rol_nombre');
 
 
The console doesn´t show an error. It´s always displaying on the screen the message "The field Rol is required"
 
Please, help me.