Hi all.
Pretty new to CI and to GC, but I already did a goodjob just using this combination.
I'm currently stuck and need some help. I have a table containing books, that belong to 1 and only 1 person. When I add a new book, I want to be able to give an active person as the owner. I don't have problem, I use
$crud->set_relation('id_controleur', 't_users', '{user_name} {user_firstname}', array('b_is_active' => 1, 'id_function' => 2, 'id_category' => 4));
and it works fine. I only see active people that are on a certain category and function.
The problem is using the edit button. Sometimes, the owner is already b_is_active = 0 when the book comes back, and if I edit, I just can't keep the same owner.
So I'd like to know if it's possible to have un set_relation for the edit action, and another for the add action.
Thanks in advance.
Claude