Hi there! Is there a way for me to disable the duplicate check for accounts and contacts? Please advise. Thank you very much!
Cheers!
Hi there! Is there a way for me to disable the duplicate check for accounts and contacts? Please advise. Thank you very much!
Cheers!
Hi Monica
You need to edit the custom/modules/Accounts/metadata/editviewdefs.php and add the hidden attribute into form attribute.
Have a look into modules/Calls/metadata/editviewdefs.php
Add a hidden field called "dup_checked" with value 'true'.
Cheers
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Thank you so much Andre!
I added it but now I am getting a blank form when I go to save the Accounts record. Any idea? Thank you again.
$viewdefs ['Accounts'] = array (
'EditView' =>
array (
'templateMeta' =>
array (
'maxColumns' => '2',
'form' => array('hidden'=>array(
'<input type= "hidden" name="dup_checked" value= "true">'),
'buttons' =>
array (
0 => 'SAVE',
1 => 'CANCEL',
),
),
Check the tail of sugarcrm.log at the root of your SugarCRM system and also the error_log of apache.
Hopefully there are some error messages regarding that issue.
Cheers
André Lopes
DevToolKit / Project of the Month - June 2009
Lampada Global Services- Open Source Solutions
Avenida Ipiranga, 318
Bloco B - CJ 1602
São Paulo, SP 01046-010
Brazil
Office: +55 11 3237-3110
Mobile: +55 11 7636-5859
e-mail: andre@lampadaglobal.com
Lampada Global delivers offshore software development and support services to customers around the world.
Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.
I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.
Both logs do not have any errors being reported. Is there any other file that needs to be edited?
I have been trying to figure this out for the last 3 days and it's driving me crazy![]()
I tried doing this as well. I'm working the Contacts edit view and everything appears to run properly, but when I try to save a contact it just saves a blank record - it doesn't include any of the information I've entered. I'm terrible at php so I'm guessing I just goofed up the code somewhere. Here is all I added to custom/modules/Contacts/metadata/editviewdefs.php:
I checked both of the error logs and there is nothing there. Any suggestions?PHP Code:5 => '<input type="hidden" name="dup_checked" value=true>',
jcb23
Hi jcb23!
After playing with this forever, I found a different route to make this work...
If you go to ContactFormBase file, find the following line (around line 567) and just comment out the one line:
if (empty($_POST['record']) && empty($_POST['dup_checked'])) {
//$duplicateContacts = $this->checkForDuplicates($prefix);
And that is itHope this helps.
I'm done talking about core hacks, I'm tired of it. Here is the info you need:
http://www.sugarcrm.com/wiki/index.p...uplicate_Merge
Developers go here
Businesses go there (Dutch)
Modules:
SugarDev.net Developer Tools | Config | Dutch Language Pack
"Nothing gets fixed unless there is a bug"
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks