AnsweredAssumed Answered

Extending Accounts' default filter

Question asked by Pedro Bazan on Jul 21, 2015
Latest reply on Jul 23, 2015 by Cédric Mourizard
Hi.

I need to add a another field to quick_search property from Accounts' default filter, like Cases, I need to search by name and another field.

I tried to add this customization on 

custom/modules/Accounts/clients/base/filters/default/default.php

$viewdefs['Accounts']['base']['filter']['default'] = array (
  'quicksearch_field' => array('name', 'my_custom_field_c'),    'quicksearch_priority' => 2,    'default_filter' => 'all_records',    'fields' =>     array( //     ),  );
It works, but I want to know

Is this a best practice?

Or 

Do I need to create a file on custom/Extension/modules/Accounts/Ext/ ?

Kind regards,
Pedro Bazan

Outcomes