Dear @web-johnny
I created a setRelation with Where condition. It works properly and displays the needed data but when I click the view button it throws an error. Refer to the image below:
This is the code:
$crud->setPrimaryKey('gsm_FlId', 'gsm'); $crud->setRelation('midrep_FLId', 'gsm', '{gsm_Section} ~ {gsm_Course}', ['gsm.gsm_UserId' => $_SESSION('user_ID')]);
Is it a bug? Is there a fix or any workaround for it?
Please help. Thanks!