#3524 - SugarChimp disable other custom operator in Sugar ?
Dear SugarChimp team,
I added in SugarCRM more operators for the filters. Unfortunately these operators are not available/working when SugarChimp is installed. If I uninstall the plugin, it's working.
I used this Sugar documentation for the implementation : http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.9/Architecture/Filters/.
I added this operators :
<?php
require_once('clients/base/filters/operators/operators.php');
$viewdefs['base']['filter']['operators'] = array(
'varchar' => array(
'$equals' => 'LBL_OPERATOR_MATCHES',
'$not_equals' => 'LBL_OPERATOR_NOT_EQUALS',
'$starts' => 'LBL_OPERATOR_STARTS_WITH',
'$is_null' => 'LBL_IS_EMPTY',
'$not_null' => 'LBL_IS_NOT_EMPTY',
),
'name' => array(
'$equals' => 'LBL_OPERATOR_MATCHES',
'$starts' => 'LBL_OPERATOR_STARTS_WITH',
'$is_null' => 'LBL_IS_EMPTY',
'$not_null' => 'LBL_IS_NOT_EMPTY',
),
'email' => array(
'$equals' => 'LBL_OPERATOR_MATCHES',
'$not_equals' => 'LBL_OPERATOR_NOT_EQUALS',
'$starts' => 'LBL_OPERATOR_STARTS_WITH',
'$is_null' => 'LBL_IS_EMPTY',
'$not_null' => 'LBL_IS_NOT_EMPTY',
),
'phone' => array(
'$starts' => 'LBL_OPERATOR_STARTS_WITH',
'$equals' => 'LBL_OPERATOR_IS',
'$is_null' => 'LBL_IS_EMPTY',
'$not_null' => 'LBL_IS_NOT_EMPTY',
),
);
In this file [ROOT_SUGAR]/custom/clients/base/filters/operators/operators.php
Can you help me with this problem ? I don't understand why SugarChimp is breaking new operators.
Kind regards,
Pierre-Nicolas
7 years ago