Uncategorized

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: […]

Uncategorized

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.     […]

Uncategorized

Docker Commands

Posted on

docker ps -a docker start metabase   app/run_metabase.sh   docker run -dit –restart unless-stopped 6be30353fa96 docker container ls -a docker start 6be30353fa96 docker run -dit –restart unless-stopped 6be30353fa96   docker rm -f 46d2139a3a5f 181e245d2c2c 96f3579cbf03 docker start superset_superset_1   docker start 46d2139a3a5f docker stop 46d2139a3a5f     docker-compose run –rm superset ./docker-init.sh    

Uncategorized

Prestashop: Add css to affect only one page.

Posted on

    {if $page_name==”index”} {literal} <style> #page { background-color: #FFFFFF; border-top-style: solid; border-top-width: 0; } </style> {/literal} {/if} https://www.prestashop.com/forums/topic/171541-css-for-home-only/ Or for example, for product page I use: {if isset($product->id)} <link rel=”canonical” href=”{$link->getProductLink($product)}” /> <link rel=”stylesheet” href=”/themes/default-bootstrap/css/global_criticalpath.css” type=”text/css” media=”all” /> {* <link rel=”stylesheet” href=”/themes/default-bootstrap/css/global_criticalpath_rev1.css” type=”text/css” media=”all” />*} {/if}

Uncategorized

Asterisk: pjsip commands

Posted on

pjsip dump endpt — Dump the res_pjsip endpt internals pjsip export config_wizard primitives [to] — Export config wizard primitives pjsip list aors — List PJSIP Aors pjsip list auths — List PJSIP Auths pjsip list channels — List PJSIP Channels pjsip list ciphers — List available OpenSSL cipher names pjsip list contacts — List PJSIP […]

Uncategorized

Powershell

Posted on

Powershell $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri “https://ps.outlook.com/powershell/” -Credential $cred -Authentication Basic -AllowRedirection Import-PSSession $session Get-Mailbox Get-Recipient -ResultSize Unlimited | select DisplayName,RecipientType,EmailAddresses | Export-Csv C:\Users\Ricardo\Desktop\email-recipients.csv Get-MessageTrackingLog -Recipients xxxx.xxxxx@malla-group.com | where {($_.EventId -eq “RECEIVE”)} Agregar Permiso de Ver Mail Recipientes Primero Ver cuales son los grupos que tenemos $ Get-Group Agregarl el Mail Recipients Role al […]

Uncategorized

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 […]

Uncategorized

Mysql: Table size query

Posted on

    SELECT TABLE_NAME, table_rows, data_length, index_length, ROUND(((data_length + index_length) / 1024 / 1024),2) ‘Size in MB’ FROM information_schema.TABLES WHERE table_schema = ‘mallagroup_mautic’ ORDER BY ROUND(((data_length + index_length) / 1024 / 1024),2) DESC ;

Uncategorized

Openbravo: Latest Version Install

Posted on

We have an old Community Version of Openbravo, which is super buggy and corrupted, so starting this new year, we’re interested on trying the latest version of OB. In this case we’ll be installing Openbravo Community Edition PR18Q4.1.  Additionally one of the reasons we want to install this is that we are going to install it […]