#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
6 years ago
I wanted to reach out here to update the support forum case. It seems that Sugar does not allow us to have multiple files in the ./custom/clients/base/filters/operators/ directory. This is causing only 1 of our 2 files to load. I have reached out to the development community to see if there is a solution. You can follow the forum here: https://community.sugarcrm.com/thread/32335-load-multiple-files-from-customclientbasefilteroperator
I'm going to close this case out for now, as we are just waiting back from Sugar on a solution. If they update the forum with a solution, I will update this support case accordingly.
--- Current workaround --- For now, the client will need to manually copy the viewdefs array from the mailchimprating.php file over to the custom file that exists there. Then, delete the mailchimprating.php file, followed by a repair and rebuild of the Sugar instance.
If anyone else runs into this issue, please reply to the forum that you also have this problem, and feel free to schedule a call for assistance getting your custom filter operators working here: Schedule a Support Meeting
Thanks, Jon