[Vtigercrm-commits] [vtiger-commits] r7324 - /vtigercrm/trunk/include/utils/ListViewUtils.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 21 02:00:33 EDT 2006


Author: saraj
Date: Wed Jun 21 00:00:29 2006
New Revision: 7324

Log:
parenttab has been parsed in activities subjectlink

Modified:
    vtigercrm/trunk/include/utils/ListViewUtils.php

Modified: vtigercrm/trunk/include/utils/ListViewUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/ListViewUtils.php (original)
+++ vtigercrm/trunk/include/utils/ListViewUtils.php Wed Jun 21 00:00:29 2006
@@ -1483,11 +1483,11 @@
 					$actvity_type = $adb->query_result($list_result,$list_result_count,'activitytype');
 					if($actvity_type == "Task")
 					{
-						$value = '<a href="index.php?action=DetailView&module='.$module.'&record='.$entity_id.'&activity_mode=Task">'.$temp_val.'</a>';
+						$value = '<a href="index.php?action=DetailView&module='.$module.'&record='.$entity_id.'&activity_mode=Task&parenttab=My Home Page">'.$temp_val.'</a>';
 					}
 					else
 					{
-						$value = '<a href="index.php?action=DetailView&module='.$module.'&record='.$entity_id.'&activity_mode=Events">'.$temp_val.'</a>';
+						$value = '<a href="index.php?action=DetailView&module='.$module.'&record='.$entity_id.'&activity_mode=Events&parenttab=My Home Page">'.$temp_val.'</a>';
 					}
 				}
 				elseif($module == "Vendors")
@@ -2567,7 +2567,9 @@
 		$field = 'id';
 		$table = 'vtiger_users';
 	}
-	$query = "SELECT ".$selectfield." FROM ".$reltable." ".$condition;
+	
+	if($reltable != null)
+		$query = "SELECT ".$selectfield." FROM ".$reltable." ".$condition;
 
 	if($query !='')
 	{





More information about the vtigercrm-commits mailing list