Hello,
I'm new in this and I have some strange issue which I can't reproduced why is happening. I have added LogicHook on after_retrieve to make some logic
$hook_array['after_retrieve'][] = Array(
3,
'UpdateInfi',
'custom/Extension/modules/Accounts/Ext/LogicHooksData/HelperHooks.php',
'HelperHooks',
'setInfo'
);
and this method is adding new button html code, and everything is working fine except I add the primary email to the current account and this button after it is not showing after updating the account. I don't have any idea why is this happening.
public function setInfo(&$bean, $event, $arguments) {
$bean->erp_info = html_entity_decode($bean->erp_info);
$bean->custom_fields->retrieve();
$button = '<div>
<input type="button" name="submit" value="Request something"/>';
</div>';
$bean->erp_info = $bean->erp_info.$button;
}