[Vtigercrm-commits] [vtiger-commits] r9807 - /vtigercrm/branches/5.0.3/include/utils/SearchUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Nov 9 03:20:09 EST 2006
Author: richie
Date: Thu Nov 9 01:20:05 2006
New Revision: 9807
Log:
* Removed the unwanted code to get the translation, now get the translated string in a single line in the function getSearchListHeaderValues which is used to get the 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 Thu Nov 9 01:20:05 2006
@@ -126,68 +126,16 @@
if($is_admin == true || $profileGlobalPermission[1] == 0 || $profileGlobalPermission[2] ==0 || in_array($fieldname,$field))
{
- if(isset($focus->sortby_fields) && $focus->sortby_fields !='')
- {
- //Added on 14-12-2005 to avoid if and else check for every list vtiger_field for arrow image and change order
-
- foreach($focus->list_fields[$name] as $tab=>$col)
- {
- if(in_array($col,$focus->sortby_fields))
- {
- if($relatedlist !='')
- {
- if($app_strings[$name])
- {
- $name = $app_strings[$name];
- }
- else
- {
- $name = $mod_strings[$name];
- }
- }
- else
- {
- if($app_strings[$name])
- {
- $lbl_name = $app_strings[$name];
- }
- else
- {
- $lbl_name = $mod_strings[$name];
- }
- $name = $lbl_name;
- }
- }
- else
- { if($app_strings[$name])
- {
- $name = $app_strings[$name];
- }
- elseif($mod_strings[$name])
- {
- $name = $mod_strings[$name];
- }
- }
- }
- }
- //Added condition to hide the close column in Related Lists
- //if($name == 'Close' && $relatedlist != '')
- if($name == 'Close')
- {
- //$list_header .= '';
- // $list_header[] = '';
- }
- else
- {
- if($fieldname!='parent_id')
- {
- $fld_name=$fieldname;
- $search_header[$fld_name]=$mod_strings[$name];
- }
- }
+ if($fieldname!='parent_id')
+ {
+ $fld_name=$fieldname;
+
+ //assign the translated string
+ $search_header[$fld_name] = getTranslatedString($name);
+ }
}
}
- $log->debug("Exiting getSearchListHeaderValues method ...");
+ $log->debug("Exiting getSearchListHeaderValues method ...");
return $search_header;
}
More information about the vtigercrm-commits
mailing list