by Fanatical Labs

Save Your Team Countless Hours. SugarChimp syncs your lists in both directions so you can work in your preferred app. Segment and group your Mailchimp subscribers based on Sugar data so you can market to the right people at the right time. Compatible with all versions and editions of Sugar and SuiteCRM. Created by Fanatical Labs, 2023 SugarCRM Partner Award Winner.

Free 30 day trial
Try it Now

By clicking you consent to share your profile with the developer

#3524 - SugarChimp disable other custom operator in Sugar ?

Closed Bug? created by ITS4U Verified Purchase 5 years ago

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 :

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,


  1. fanatical_jon member avatar

    Jon S Provider

    5 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:

    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

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
  • "The new version does this much better and is actually much more feature rich than the old version 3 plugin." - Infosec Train

    Read More Reviews