Need Help: Assigned To and Created By Filters Not Working Independently

I am facing an issue while configuring filters in the system.

When I set a filter using “Assigned to” for searching records, the “Created by” filter is also getting automatically set to the same value at the same time.

This is causing incorrect search results, as I want these two filters to work independently.

I have attached a screenshot for better understanding.

Could someone please guide me on why this is happening and how to fix this issue?

Thank you in advance for your support.

Hello Bhavin,

it looks different for me.
What CRM version and module are you using there?

Its 8.9

After enabling both Assigned To and Created By filters, when I select Bhavin Patel in the Assigned To field and click the Search button, the Created By field is automatically set to the same value selected in the Assigned To field.

Which module are you using there?

Task Module i have set the below array

public/legacy/custom/modules/Tasks/metadata/searchdefs.php

‘created_by’ =>

  array (

‘type’ => ‘enum’,

‘label’ => ‘LBL_CREATED’,

‘function’ =>

array (

‘name’ => ‘get_user_array’,

‘params’ =>

array (

0 => false,

      ),

    ),

‘width’ => ‘10%’,

‘default’ => true,

‘name’ => ‘created_by’,

  ),

‘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,

‘width’ => ‘10%’,

  ),

For custom code, that usually needs custom dev / debugging.
One idea to look into:

created_by is it really an enum? Without checking my code, that should contain the ID.

you can try to add the created by field in filter of any modules, and check the field not showing like the assgined users field
that is the reason i have modifield the code of the searchfield.

any solution for me ?

I’ve tried this via the studio and found an issue with the fields in the filters (and reported it on github).

For your custom development, it’s definitely a solvable problem - however I don’t have a finished solution in the drawer to copy n paste. If you’d like to discuss this in a more dedicated capacity, feel free to send me a private message. We can explore the requirements from there.