Hello,
First of all, Github update did not correct the error... Email component works fine else where when selecting single users
I have a form with a left join & inner join. There is a repeat group which links to the users. I want to send emails to the users selected in the repeat group on submission of the form.
When i try to use the email form plugin, with the following code to get the email to address ;
"
$myUserid = $formModel->getElementData('task_list_3_repeat___user', true);
$myUserid = is_array($myUserid) ? $myUserid[0] : $myUserid;
return JFactory::getUser($myUserid)->get('email');
"
When i submit the record it stores, but will not email and returns the following error;
"Unknown column 'Array' in 'where clause' SQL=SELECT `id` FROM `#__users` WHERE `username` = Array LIMIT 1"
I have tried several things, checked the configuration and ensured the joins do not conflict but i cannot understand how to correct this error. I have tested it on another form and it works perfectly fine, the only difference is the other form only has one join, the left join which exists in the other table also with another join.
Can someone please help me? This has been bothering me for too long!!!
First of all, Github update did not correct the error... Email component works fine else where when selecting single users
I have a form with a left join & inner join. There is a repeat group which links to the users. I want to send emails to the users selected in the repeat group on submission of the form.
When i try to use the email form plugin, with the following code to get the email to address ;
"
$myUserid = $formModel->getElementData('task_list_3_repeat___user', true);
$myUserid = is_array($myUserid) ? $myUserid[0] : $myUserid;
return JFactory::getUser($myUserid)->get('email');
"
When i submit the record it stores, but will not email and returns the following error;
"Unknown column 'Array' in 'where clause' SQL=SELECT `id` FROM `#__users` WHERE `username` = Array LIMIT 1"
I have tried several things, checked the configuration and ensured the joins do not conflict but i cannot understand how to correct this error. I have tested it on another form and it works perfectly fine, the only difference is the other form only has one join, the left join which exists in the other table also with another join.
Can someone please help me? This has been bothering me for too long!!!
Last edited: