Suite CRM: 8.2.2
PHP: 7.4
Hi,
I have been requested to make a created by filter for tasks,
When I add it via studio it only creates a text input field.
For it to function you must input the user ID, which isn’t going to be known to a normal user.
My next thought was to use the variable data in the vardef file for assigned user and include it in the created by array.
File Path: /public/legacy/custom/modules/Tasks/metadata/searchdefs.php
What Studio Creates:
'created_by' =>
array (
'type' => 'assigned_user_name',
'label' => 'LBL_CREATED',
'width' => '10%',
'default' => true,
'name' => 'created_by',
),
My Modified Version:
'created_by' =>
array (
'type' => 'enum',
'label' => 'LBL_CREATED',
'width' => '10%',
'default' => true,
'name' => 'created_by',
'function' =>
array (
'name' => 'get_user_array',
'params' =>
array (false),
),
),
The issue with this though is that it is now treated as an assigned user filter field in the filters.
My question is if this is a known issue in SuiteCRM 8 or am I doing something wrong?