[Vtigercrm-commits] [vtiger-commits] r9774 - /vtigercrm/branches/5.0.3/include/utils/SearchUtils.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Nov 6 08:05:47 EST 2006


Author: richie
Date: Mon Nov  6 06:05:43 2006
New Revision: 9774

Log:
i18n support for advance and basic search fields

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

Modified: vtigercrm/branches/5.0.3/include/utils/SearchUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/SearchUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/SearchUtils.php Mon Nov  6 06:05:43 2006
@@ -182,12 +182,12 @@
 				if($fieldname!='parent_id')
 				{
 					$fld_name=$fieldname;
-                                	$search_header[$fld_name]=$name;
+                                	$search_header[$fld_name]=$mod_strings[$name];
 				}
                         }
                 }
         }
-	$log->debug("Exiting getSearchListHeaderValues method ...");	
+	$log->debug("Exiting getSearchListHeaderValues method ...");		
         return $search_header;
 
 }
@@ -451,7 +451,7 @@
 		$block = $adb->query_result($result,$i,"block");
 		$fieldtype = explode("~",$fieldtype);
 		$fieldtypeofdata = $fieldtype[0];
-		$fieldlabel = $adb->query_result($result,$i,"fieldlabel");
+		$fieldlabel = $mod_strings[$adb->query_result($result,$i,"fieldlabel")];
 		if($fieldlabel == "Related To")
 		{
 			$fieldlabel = "Related to";





More information about the vtigercrm-commits mailing list