Jump to content


SetDependentRelation doesn't works with ID=0


  • Please log in to reply
No replies to this topic

#1 matiasnabarro@gmail.com

matiasnabarro@gmail.com

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 29 July 2020 - 01:55 AM

Hello! I have this settings in a $crud (Enteprise V2.8.1) :
 

        $crud->setRelation("tbl_tipos_trabajo_id""tbl_tipos_trabajo""tipo_trabajo_abrev");
        $crud->setRelation("tbl_subtipos_trabajo_id""tbl_subtipos_trabajo""subtipo_trabajo");
        $crud->setDependentRelation("tbl_subtipos_trabajo_id","tbl_tipos_trabajo_id","tbl_tipos_trabajo_id");

 

If the parent (tbl_tipos_trabajo_id) index  is 0, the dependent combo remains empty, even if there are items that satisfy the condition. If I change tbl_tipos_trabajo_id to any other number, it works fine. 

Don't know if this is a known issue of GC. 

Best regards.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users