[Vtigercrm-commits] [vtiger-commits] r4637 - /vtigercrm/trunk/modules/Vendors/Vendor.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Mar 29 02:54:23 EST 2006


Author: saraj
Date: Wed Mar 29 00:54:17 2006
New Revision: 4637

Log:
junk code has been removed

Modified:
    vtigercrm/trunk/modules/Vendors/Vendor.php

Modified: vtigercrm/trunk/modules/Vendors/Vendor.php
==============================================================================
--- vtigercrm/trunk/modules/Vendors/Vendor.php (original)
+++ vtigercrm/trunk/modules/Vendors/Vendor.php Wed Mar 29 00:54:17 2006
@@ -70,10 +70,6 @@
 		$this->column_fields = getColumnFields('Vendors');
 	}
 
-  function get_summary_text()
-        {
-                return $this->name;
-        }
 	function get_products($id)
 	{
 		global $app_strings;
@@ -113,31 +109,4 @@
 		return GetRelatedList('Vendor','Contacts',$focus,$query,$button,$returnset);
 
 	}
-       function get_related_contacts($id)
-       {
-               $query = 'SELECT vendorcontactrel.*, crmentity.crmid from vendorcontactrel inner join crmentity on crmentity.crmid = vendorcontactrel.contactid where crmentity.deleted=0 and vendorcontactrel.vendorid = '.$id;
-               $result = $this->db->query($query);
-               $cnt_id = array();
-               $cnt_list = '';
-               if($this->db->num_rows($result)!=0)
-               {
-                       while($row = $this->db->fetch_array($result))
-                       {
-                               $cnt_id[] = $row['contactid'];
-                       }
-                       for ($i = 0; $i < count($cnt_id); $i++)
-                       {
-                               $cnt_list .= $cnt_id[$i] . ',';
-                       }
-
-                       if ($cnt_list)
-                       {
-                               $cnt_list = substr($cnt_list, 0, strlen($cnt_list) -1);
-                       }
-
-               }
-               return $cnt_list;
-         }
-
-}
 ?>





More information about the vtigercrm-commits mailing list