In a details form view, a 500 error is produced from a Where condition using a placeholder in both a databasejoin and cascadingdropdown element.
It works fine in form view, but when in details view the raw data is not used in the query, despite being specified in the Where condition.
This is the error shown in the console...
POST https://mydomain.com/customize-reports/details/225/10 500 (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Care & Services AND IF(Home Care & Services=5, mng_locked=1, locked=1)' at line 4 SQL=SELECT `fb_breakouts_repeat_filtered_members`.id AS id,`fb_breakouts_repeat_filtered_members`.parent_id, `fb_breakouts_repeat_filtered_members`.`filtered_members` AS value, `fb_member_facilities`.`member_facility_selector` AS text FROM `fb_breakouts_repeat_filtered_members` LEFT JOIN fb_member_facilities ON `fb_member_facilities`.`id` = `fb_breakouts_repeat_filtered_members`.`filtered_members` WHERE facility_type_id=Home Care & Services AND IF(Home Care & Services=5, mng_locked=1, locked=1))
And this is the WHERE condition being used...
WHERE facility_type_id={fb_breakouts___facility_type_id_raw||0} AND IF({fb_breakouts___facility_type_id_raw||0}=5, mng_locked=1, locked=1) ORDER BY facility_name
It works fine in form view, but when in details view the raw data is not used in the query, despite being specified in the Where condition.
This is the error shown in the console...
POST https://mydomain.com/customize-reports/details/225/10 500 (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Care & Services AND IF(Home Care & Services=5, mng_locked=1, locked=1)' at line 4 SQL=SELECT `fb_breakouts_repeat_filtered_members`.id AS id,`fb_breakouts_repeat_filtered_members`.parent_id, `fb_breakouts_repeat_filtered_members`.`filtered_members` AS value, `fb_member_facilities`.`member_facility_selector` AS text FROM `fb_breakouts_repeat_filtered_members` LEFT JOIN fb_member_facilities ON `fb_member_facilities`.`id` = `fb_breakouts_repeat_filtered_members`.`filtered_members` WHERE facility_type_id=Home Care & Services AND IF(Home Care & Services=5, mng_locked=1, locked=1))
And this is the WHERE condition being used...
WHERE facility_type_id={fb_breakouts___facility_type_id_raw||0} AND IF({fb_breakouts___facility_type_id_raw||0}=5, mng_locked=1, locked=1) ORDER BY facility_name