Skip to content

Instantly share code, notes, and snippets.

View erop's full-sized avatar

Egor Ushakov erop

View GitHub Profile
<?php
// this file is upgrade safe
// location: custom/modules/Contacts/views/view.detail.php
require_once('modules/Contacts/views/view.detail.php');
class CustomContactsViewDetail extends ContactsViewDetail {
/**
* @see SugarView::display()
@erop
erop / gist:935573
Created April 21, 2011 21:55 — forked from jmertic/gist:825943
PHP: Check if SugarCRM record is new
<?php
if (!empty($bean->fetched_row['id'])) {
// Do custom logic
}