[Vtigercrm-commits] [vtiger-commits] r10165 - /vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Feb 12 02:16:02 EST 2007


Author: jerrydgeorge
Date: Mon Feb 12 00:15:41 2007
New Revision: 10165

Log:
Issue in Long URL in List view has been fixed.Fixes #2859

Modified:
    vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php

Modified: vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/ListViewUtils.php Mon Feb 12 00:15:41 2007
@@ -1004,11 +1004,14 @@
 		$colname="activitystatus";
 	}
 	//Ends
-	$temp_val = $adb->query_result($list_result,$list_result_count,$colname);
-	if(strlen($temp_val) > 40)
+	$field_val = $adb->query_result($list_result,$list_result_count,$colname);
+	if(strlen($field_val) > 40)
         {
-                $temp_val = substr($temp_val,0,40).'...';
-        }
+                $temp_val = substr($field_val,0,40).'...';
+        }else
+	{
+		$temp_val = $field_val;
+	}
 	if($uitype == 52 || $uitype == 53 || $uitype == 77)
 	{
 		$value = $adb->query_result($list_result,$list_result_count,'user_name');
@@ -1059,14 +1062,14 @@
 	}
 	elseif($uitype == 17)
 	{
-		$value = '<a href="http://'.$temp_val.'" target="_blank">'.$temp_val.'</a>';
+		$value = '<a href="http://'.$field_val.'" target="_blank">'.$temp_val.'</a>';
 	}
 	elseif($uitype == 13 || $uitype == 104)
         {
 		if(useInternalMailer() == 1)
                 	$value = '<a href="javascript:InternalMailer('.$entity_id.',\'record_id\')">'.$temp_val.'</a>';
 		else
-                	$value = '<a href="mailto:'.$temp_val.'">'.$temp_val.'</a>';
+                	$value = '<a href="mailto:'.$field_val.'">'.$temp_val.'</a>';
         }
 	elseif($uitype == 56)
 	{





More information about the vtigercrm-commits mailing list