Skip to content

Instantly share code, notes, and snippets.

@dmulvi
Created April 22, 2015 19:40
Show Gist options
  • Save dmulvi/fa3d02f55f544585593a to your computer and use it in GitHub Desktop.
Save dmulvi/fa3d02f55f544585593a to your computer and use it in GitHub Desktop.
Disable Duplicate Checking for a module in SugarCRM
<?php
/* This will turn off duplicate checking for the module.
Put the file in this directory:
custom/Extension/modules/MODULE/Ext/Vardefs/
and Quick Repair/Rebuild */
$dictionary['MODULE']['duplicate_check']['FilterDuplicateCheck']['filter_template'] = array();
@Vincent-aCRM
Copy link

Hi,
I'm still learning, so wondered if you'd kindly advise if the following alternative code does the same and which method is considered 'upgrade safe' please?

Example for Opportunities module:
Create \custom\Extension\modules\Opportunities\Ext\Vardefs\sugarfield_cancel_duplicate_check.php (The name of this file can be changed to else as you wish). And add the following code.

Do quick-repair & Rebuild

@dmulvi
Copy link
Author

dmulvi commented Jun 5, 2020

The main question would be version. This gist is pretty old so it may be that it's for version 6.5.x of sugar. I cannot say for sure though.
Did you try it? Although I did find this link which outlines the same approach and is for version 7.5.x http://www.urdhva-tech.com/blogs/disable-duplicate-check-on-fields-in-sugarcrm7.

@Vincent-aCRM
Copy link

OK, thank you for responding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment