I have a calc element that started throwing an error. I'm not sure when this was introduced as it's been a while since I saved this form - and the calc element is set to only calc on save.
A screen snip of the error is attached.
This is the code used in the calc that is now generating the error...
fb_conglomerates___user_id is a 'user' element. Yet the calc is now using the user name rather than the raw value as specified in the placeholder.
A screen snip of the error is attached.
This is the code used in the calc that is now generating the error...
PHP:
$myQuery = 'SELECT m.facility_type_id, m.member_facility_id, ft.survey_participation_credits FROM master_report as m LEFT JOIN fb_facility_types as ft ON m.facility_type_id=ft.id WHERE m.user_id={fb_conglomerates___user_id_raw||0} GROUP BY m.member_facility_id';
fb_conglomerates___user_id is a 'user' element. Yet the calc is now using the user name rather than the raw value as specified in the placeholder.