SugarCRM

SugarCRM: Multiple links found for relationship

Posted on

Fri Oct 11 18:16:51 2019 [10594][1][ERROR] Warning: Multiple links found for relationship a26_proveedor_contacts within module Contacts Fri Oct 11 18:16:51 2019 [10594][1][ERROR] Warning: Multiple links found for relationship a26_proveedor_contacts within module Contacts Fri Oct 11 18:16:51 2019 [10594][1][ERROR] Warning: Multiple links found for relationship a26_proveedor_contacts within module Contacts Fri Oct 11 18:16:51 2019 [10594][1][ERROR] Warning: […]

SugarCRM

SugarCRM: Convert Field to HTML

Posted on

It is not possible to do using Studio. You need to create an extended vardefs and modify its field type: Create the file custom/Extension/modules/<ModuleName>/Ext/Vardefs/<somescript>.php and add the code below into it: <?PHP $dictionary['<BeanName>']['fields']['<FieldName>']['type']= 'html'; ?> Replace the content between "<>" by the appropriate values. Go to Admin -> Repair -> Quick Repair and Rebuild.     […]

SugarCRM

SugarCRM: Higlight Invalid Emails

Posted on

line-throughline-through   /var/www/html/master/include/SugarEmailAddress/templates/forDetailView.tpl Around line 42   <td style="border:none;">{if $address.key === 'opt_out'}<span style="text-decoration: line-through; background: rgba(255, 255, 0, 0.3)">{elseif $address.key === 'invalid'}<span style="text-decoration: line-through; background: rgba(255, 0, 0, 0.3)">{elseif $address.key === 'opt_out_invalid'}<span style="text-decoration: line-through; background: rgba(255, 0, 0, 0.3)">{elseif $address.key === 'primary'}<b>{elseif $address.key === 'reply_to' && $item.key != 0}<i>{/if} {$address.address} {if $address.key === 'primary'}</b>&nbsp;<i>&#x28;{$app_strings.LBL_EMAIL_PRIMARY}&#x29;&#x200E;</i>{elseif $address.key […]

SugarCRM

SugarCRM: Run Java Script from Custom logic hook

Posted on

    <?php if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); class idempiere_sync { function idempiere_sync(&$bean, $event, $arguments) { require_once('log4php/LoggerManager.php'); $JAVA_HOME = "/usr/lib/jvm/java-8-openjdk-amd64"; $PATH = "$JAVA_HOME/bin:/usr/local/bin:/usr/bin:/bin"; putenv("JAVA_HOME=$JAVA_HOME"); putenv("PATH=$PATH"); $output = shell_exec('/home/Scripts/talend/iDempiere/SugarCRM/CRM_iDempiere/CRM_iDempiere_run.sh'); echo $output; } } ?>