Skip to content

vt7: RelatedList.tpl many unnecessary calls to RELATED_MODULE->getName()

If you search through the Vtiger RelatedList.tpl template, right at the top you will see a Smarty assignment:

{assign var=RELATED_MODULE_NAME value=$RELATED_MODULE->get('name')}

Then throughout the template, some checks are made on this new RELATED_MODULE_NAME var but there are FIVE others lines which call instead `RELATED_MODULE->get('name')`...

This is waste of cycles IMHO.