Skip to content

Instantly share code, notes, and snippets.

@hatimalam
Created November 14, 2017 15:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hatimalam/63a74079ce365dc2dbaac30e641f90c1 to your computer and use it in GitHub Desktop.
Save hatimalam/63a74079ce365dc2dbaac30e641f90c1 to your computer and use it in GitHub Desktop.
Adding new field to list view search - SugarCRM 7.x
<?php
/** custom filter file to add new field to module list view search **/
//push your new field to quicksearch_field array
$viewdefs['Accounts']['base']['filter']['default']['quicksearch_field'][] = 'account_number_c';
//give priority > 0
$viewdefs['Accounts']['base']['filter']['default']['quicksearch_priority'] = 2;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment