
Originally Posted by
Sukale Hello André,
thank you for your fast reply.
Here is the query:
SELECT accounts.id , accounts.name , accounts.industry , accounts.rating , accounts.billing_address_city , accounts.billing_address_postalcode , accounts.annual_revenue , accounts.employees , jt0.user_name assigned_user_name , jt0.created_by assigned_user_name_owner , 'Users'
assigned_user_name_mod, accounts.assigned_user_id , accounts.created_by FROM accounts LEFT JOIN users jt0 ON jt0.id= accounts.assigned_user_id AND jt0.deleted=0 AND jt0.deleted=0 where ((accounts.assigned_user_name like 'Username%')) AND accounts.deleted=0 ORDER BY accounts.name ASC
and here we are with the error message:
Unknown column 'accounts.assigned_user_name' in 'where clause'
Thank you for your help
Regards
Lars
I had this problem
I solved it by editing custom/modules/Accounts/metadata/searchdefs
replace the assigned_user_name bit with
Code:
'assigned_user_id' =>
array (
'name' => 'assigned_user_id',
'type' => 'enum',
'label' => 'LBL_ASSIGNED_TO',
'function' =>
array (
'name' => 'get_user_array',
'params' =>
array (
0 => false,
),
),
'default' => true,
'sortable' => false,
),
Bookmarks