[Vtigercrm-commits] [vtiger-commits] r7625 - /vtigercrm/trunk/modules/Users/User.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 28 08:28:47 EDT 2006


Author: saraj
Date: Wed Jun 28 06:28:43 2006
New Revision: 7625

Log:
* Modified the function retrieve_entity_info as if the record is empty then return null and added to set the id

Modified:
    vtigercrm/trunk/modules/Users/User.php

Modified: vtigercrm/trunk/modules/Users/User.php
==============================================================================
--- vtigercrm/trunk/modules/Users/User.php (original)
+++ vtigercrm/trunk/modules/Users/User.php Wed Jun 28 06:28:43 2006
@@ -708,6 +708,14 @@
 	function retrieve_entity_info($record, $module)
 	{
 		global $adb,$log;
+		$log->debug("Entering into retrieve_entity_info($record, $module) method.");
+
+		if($record == '')
+		{
+			$log->debug("record is empty. returning null");
+			return null;
+		}
+
 		$result = Array();
 		foreach($this->tab_name_index as $table_name=>$index)
 		{
@@ -730,6 +738,11 @@
 		}
 		$this->column_fields["record_id"] = $record;
 		$this->column_fields["record_module"] = $module;
+
+		$this->id = $record;
+		$log->debug("Exit from retrieve_entity_info($record, $module) method.");
+
+		return $this;
 	}
 	function uploadAndSaveFile($id,$module,$file_details)
 	{





More information about the vtigercrm-commits mailing list