// Add links for actions menu
self::addUrls($this, $this->_contactId);
$this->assign('groupOrganizationUrl', $this->getGroupOrganizationUrl($contactType));
+
+ // Assign deleteURL variable, used as part of ContactImage.tpl
+ self::$_template->ensureVariablesAreAssigned(['deleteURL']);
}
/**
<div class="crm-contact_image crm-contact_image-block">
{$imageURL}
</div>
- {if $action eq 0 or $action neq 1}
+ {if $action eq 0 or $action neq 1 and $deleteURL}
<div class='crm-contact_image-block crm-contact_image crm-contact_image-delete'>{$deleteURL}</div>
{/if}
{/crmRegion}