[Vtigercrm-commits] [vtiger-commits] r4690 - /vtigercrm/trunk/modules/Activities/Event.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Mar 29 07:11:31 EST 2006
Author: saraj
Date: Wed Mar 29 05:11:15 2006
New Revision: 4690
Log:
unwanted functions removed
Modified:
vtigercrm/trunk/modules/Activities/Event.php
Modified: vtigercrm/trunk/modules/Activities/Event.php
==============================================================================
--- vtigercrm/trunk/modules/Activities/Event.php (original)
+++ vtigercrm/trunk/modules/Activities/Event.php Wed Mar 29 05:11:15 2006
@@ -96,99 +96,6 @@
}
- function fill_in_additional_list_fields()
- {
- $this->fill_in_additional_detail_fields();
- }
-
- function fill_in_additional_detail_fields()
- {
- // Fill in the assigned_user_name
- $this->assigned_user_name = get_assigned_user_name($this->assigned_user_id);
-
- global $app_strings;
-
- if (isset($this->contact_id)) {
- require_once("modules/Contacts/Contact.php");
- $contact = new Contact();
- $query = "SELECT firstname, lastname, phone, email from $contact->table_name where contactid = '$this->contact_id'";
-
- $result =$this->db->query($query,true,$app_strings['ERR_CREATING_FIELDS']);
-
-
- // Get the id and the name.
-
- $row = $this->db->fetchByAssoc($result);
-
-
- if($row != null)
- {
- $this->contact_name = return_name($row, 'first_name', 'last_name');
- if ($row['phone_work'] != '') $this->contact_phone = $row['phone_work'];
- if ($row['email1'] != '') $this->contact_email = $row['email1'];
- }
- }
- if ($this->parent_type == "Potentials") {
- require_once("modules/Potentials/Opportunity.php");
- $parent = new Potential();
- $query = "SELECT name from $parent->table_name where id = '$this->parent_id'";
-
- $result =$this->db->query($query,true, $app_strings['ERR_CREATING_FIELDS']);
-
- // Get the id and the name.
-
- $row = $this->db->fetchByAssoc($result);
-
-
- if($row != null)
- {
- if ($row['name'] != '') $this->parent_name = stripslashes($row['name']);
- }
- }
- if ($this->parent_type == "Cases") {
- require_once("modules/Cases/Case.php");
- $parent = new aCase();
- $query = "SELECT name from $parent->table_name where id = '$this->parent_id'";
-
- $result =$this->db->query($query,true,$app_strings['ERR_CREATING_FIELDS']);
-
-
- // Get the id and the name.
-
- $row = $this->db->fetchByAssoc($result);
-
-
- if($row != null)
- {
- if ($row['name'] != '') $this->parent_name = stripslashes($row['name']);
- }
- }
- if ($this->parent_type == "Accounts") {
- require_once("modules/Accounts/Account.php");
- $parent = new Account();
- $query = "SELECT name from $parent->table_name where id = '$this->parent_id'";
-
- $result =$this->db->query($query,true, $app_strings['ERR_CREATING_FIELDS']);
-
-
- // Get the id and the name.
-
- $row = $this->db->fetchByAssoc($result);
-
-
- if($row != null)
- {
- if ($row['name'] != '') $this->parent_name = stripslashes($row['name']);
- }
- }
- }
-
- function delete($id)
- {
-
- $this->db->query("update tasks set deleted=1 where id = '" . $id . "'");
- }
-
function getCount($user_name)
{
$query = "select count(*) from tasks inner join users on users.id=tasks.assigned_user_id where user_name='" .$user_name ."' and tasks.deleted=0";
More information about the vtigercrm-commits
mailing list