function zd_TicketsViewEdit() { parent::ViewEdit(); if ($_REQUEST['return_module'] && $_REQUEST['return_id']) { $this->requesters = array(); switch ($_REQUEST['return_module']) { case 'Accounts': $this->referrer = new Account(); $this->referrer->retrieve($_REQUEST['return_id']); $count = 0; foreach ($this->referrer->get_contacts() as $contact) { $this->requesters[$contact->email1] = $contact->name; } break; case 'Leads': $this->referrer = new Lead(); $this->referrer->retrieve($_REQUEST['return_id']); $this->requesters = array($this->referrer->email1 => $this->referrer->name); break; case 'Contacts': $this->referrer = new Contact(); $this->referrer->retrieve($_REQUEST['return_id']); $this->requesters = array($this->referrer->email1 => $this->referrer->name); break; case 'Opportunities': $this->referrer = new Opportunity(); $this->referrer->retrieve($_REQUEST['return_id']); $this->referrer->load_relationship('contacts'); $query_array = $this->referrer->contacts->getQuery(true); $query_array['select'] = "SELECT contacts.id, contacts.first_name, contacts.last_name, contacts.title, contacts.phone_work, opportunities_contacts.contact_role as opportunity_role, opportunities_contacts.id as opportunity_rel_id "; $query = ''; foreach ($query_array as $qstring) { $query .= ' ' . $qstring; } $temp = array('id', 'first_name', 'last_name', 'title', 'phone_work', 'opportunity_role', 'opportunity_rel_id'); $contacts = $this->referrer->build_related_list2($query, new Contact(), $temp); foreach ($contacts as $contact) { $contact->retrieve(); $this->requesters[$contact->email1] = $contact->name; } break; } if (sizeof($this->requesters) == 0) { $this->requesters = array($this->referrer->email1 => $this->referrer->name); } } }
function OfficeReportsVariablesViewEdit() { parent::ViewEdit(); }
public function __construct() { parent::ViewEdit(); $this->useForSubpanel = true; $this->useModuleQuickCreateTemplate = true; }
function BugsViewEdit() { parent::ViewEdit(); }
/** * @see SugarView::ViewEdit() */ function DocumentsViewEdit() { parent::ViewEdit(); $this->useForSubpanel = true; }
public function __construct() { parent::ViewEdit(); }
function CasesViewEdit() { parent::ViewEdit(); }
function QuotesViewEdit() { parent::ViewEdit(); }
function xInventoriesViewEdit() { parent::ViewEdit(); }
function FP_eventsViewEdit() { parent::ViewEdit(); }
public function PdfManagerViewEdit() { parent::ViewEdit(); }
function CallsViewEdit() { parent::ViewEdit(); }
function FavoritesViewEdit() { parent::ViewEdit(); }
function oqc_OfferingViewEdit() { parent::ViewEdit(); }
function ProjectViewTemplatesEdit() { parent::ViewEdit(); }
function AOS_PDF_TemplatesViewEdit() { parent::ViewEdit(); }
function EmployeesViewEdit() { parent::ViewEdit(); }
function AOS_InvoicesViewEdit() { parent::ViewEdit(); }
function REG_PatientViewViewRiskEvaluation() { parent::ViewEdit(); }
function __construct() { // 2013-02-28 disable VCR Display $GLOBALS['sugar_config']['disable_vcr'] = true; parent::ViewEdit(); }
function AOS_ContractsViewDetail() { parent::ViewEdit(); }
function OdersViewEdit() { parent::ViewEdit(); }
function RealtyTemplatesViewEdit() { parent::ViewEdit(); }
function ContractsViewEdit() { parent::ViewEdit(); }
function UsersViewEdit() { parent::ViewEdit(); }
function AOS_Product_CategoriesViewEdit() { parent::ViewEdit(); }
function OpportunitiesViewEdit() { parent::ViewEdit(); $this->useForSubpanel = true; }
function REG_PatientViewReportMain() { parent::ViewEdit(); }
function ProjectViewEdit() { parent::ViewEdit(); }
function ContactsViewEdit() { parent::ViewEdit(); $this->useForSubpanel = true; $this->useModuleQuickCreateTemplate = true; }