Jump to content


Strange behavior of set_relation() with filtered records

set_relation

  • Please log in to reply
No replies to this topic

#1 Ducsi

Ducsi

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 17 September 2015 - 09:10 PM

Hello,

I try to use set_relation with filter.

$this->grocery_crud->set_relation('cabinet_id','cabinets','Name',array('isFree'=>'1'));

During add method it is work fine, I can only select those records from the related table where the filtered status is met.

BUT!
On edit, the filed from the related table became empty(!), I cannot save the edit (the field is required)

I can only choose a new record from the dropdown list, which is not the expected behavior form my case..

How to solve this?

Thanks

 







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users