⚠ 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 and field_type/true_false cannot coexist?



dgvirtual
  • profile picture
  • Member

Posted 15 April 2016 - 13:16 PM

I cannot put set_relation_n_n and field_type/true_false into the same function. Once I modify any field with a true_false field type, the nice set_relation_n_n field_type stops displaying correctly (instead of the field where I can both add categories and arrange them I get a simple listbox with multiple select option).
These are the two problematic entries:

$this->grocery_crud->set_relation_n_n('problemos','problemos','probl_kategorijos','kons_id','problemos_id','pavadinimas','pagrindine');
$this->grocery_crud->field_type('nukr1','true_false');

I am using 1.5.4 Grocery CRUD and CodeIgniter 3.0.5, php version is 5.3.10-1ubuntu3.18