by Fanatical Labs

Save Your Team Countless Hours. SugarChimp syncs your lists in both directions so that you can work in your preferred application. Segment and Group your MailChimp subscribers based on SugarCRM data so you can market to the right people at the right time. Fully compatible with all versions and editions of Sugar and SuiteCRM.

Free 30 day trial
Try it Now

#3524 - SugarChimp disable other custom operator in Sugar ?

Closed Bug? created by ITS4U Verified Purchase a year 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 : 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

  1. fanatical_jon member avatar

    Jon S Provider

    a year 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

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...
Rating
Rating
  • "SugarChimp is working great. We're able to sync all of our lists and subscriber fields between MailChimp and SugarCRM. SugarChimp Support also did a great job supporting us as we were setting everything up."

    Read More Reviews

Keep up to date on the latest additions

We'll send you an email every month with handpicked add-ons, reviews, tricks and tips. Don't worry, we hate spam as much as you do.