When adding the current_by
field to the advanced or basic filter in Studio, the filter disappears when using the list view.
Hi,
The filter never disappears, please check if you have added it into basic filter or in the advance filter. You have to go to the related filter area. By default CRM shows Basic Filter.
Thanks
To resolve your error, navigate to modules/ModuleBuilder/parsers/views/DeployedMetaDataImplementation.php
and add the following code just before the line $this->_saveToFile($filename, $layoutDefinitions);
:
set your field name
$updateFields = [
'created_by' => [
'label' => 'LBL_CREATED',
'function' => ['name' => 'get_user_array', 'params' => [false]],
'filter_type' => 'enum',
],
'modified_user_id' => [
'label' => 'LBL_MODIFIED',
'function' => ['name' => 'get_user_array', 'params' => [false]],
'filter_type' => 'enum',
],
];
foreach ($updateFields as $field => $details) {
if (!empty($layoutDefinitions['layout']['advanced_search'][$field])) {
$layoutDefinitions['layout']['advanced_search'][$field] = [
'name' => $field,
'type' => 'enum',
'label' => $details['label'],
'default' => true,
'width' => '10%',
] + $details;
}
}