Ejemplo n.º 1
0
 /**
  * @see parent::get_list_view_data()
  */
 public function get_list_view_data()
 {
     global $system_config, $current_user;
     $temp_array = $this->get_list_view_array();
     $temp_array['EMAIL1'] = $this->emailAddress->getPrimaryAddress($this);
     $this->email1 = $temp_array['EMAIL1'];
     $temp_array['EMAIL1_LINK'] = $current_user->getEmailLink('email1', $this, '', '', 'ListView');
     return $temp_array;
 }
Ejemplo n.º 2
0
 /**
  * @see parent::get_list_view_data()
  *
  * @return array
  */
 public function get_list_view_data()
 {
     global $system_config, $current_user;
     $this->_create_proper_name_field();
     $temp_array = $this->get_list_view_array();
     $temp_array['NAME'] = $this->name;
     $temp_array["ENCODED_NAME"] = $this->full_name;
     $temp_array["FULL_NAME"] = $this->full_name;
     $temp_array['EMAIL1'] = $this->emailAddress->getPrimaryAddress($this);
     $this->email1 = $temp_array['EMAIL1'];
     $temp_array['EMAIL1_LINK'] = $current_user->getEmailLink('email1', $this, '', '', 'ListView');
     return $temp_array;
 }
Ejemplo n.º 3
0
 function fill_in_additional_detail_fields()
 {
     parent::fill_in_additional_detail_fields();
     //TODO:  Seems odd we need to clear out these values so that list views don't show the previous rows value if current value is blank
     $this->getRelatedFields('Contacts', $this->contact_id, array('name' => 'contact_name', 'phone_work' => 'contact_phone'));
     if (!empty($this->contact_name)) {
         $emailAddress = new SugarEmailAddress();
         $this->contact_email = $emailAddress->getPrimaryAddress(false, $this->contact_id, 'Contacts');
     }
     if (isset($this->contact_id) && $this->contact_id != '') {
         $contact = new Contact();
         $contact->retrieve($this->contact_id);
         if (isset($contact->id)) {
             $this->contact_name = $contact->full_name;
         }
     }
 }