[Vtigercrm-commits] [vtiger-commits] r9087 - /vtigercrm/trunk/include/utils/DetailViewUtils.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Aug 24 00:48:49 EDT 2006


Author: richie
Date: Wed Aug 23 22:48:46 2006
New Revision: 9087

Log:
changes made to reduce the no. of currency query --Minnie

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

Modified: vtigercrm/trunk/include/utils/DetailViewUtils.php
==============================================================================
--- vtigercrm/trunk/include/utils/DetailViewUtils.php (original)
+++ vtigercrm/trunk/include/utils/DetailViewUtils.php Wed Aug 23 22:48:46 2006
@@ -49,10 +49,7 @@
 	$arr_data =Array();
 	$label_fld = Array();
 	$data_fld = Array();
-	$currencyid=fetchCurrency($current_user->id);
-	$rate_symbol=getCurrencySymbolandCRate($currencyid);
-	$rate = $rate_symbol['rate'];
-	$curr_symbol = $rate_symbol['symbol'];
+	require('user_privileges/user_privileges_'.$current_user->id.'.php');
 	if($generatedtype == 2)
 		$mod_strings[$fieldlabel] = $fieldlabel;
 
@@ -790,6 +787,9 @@
 	}
 	elseif($uitype == 71 || $uitype == 72)
 	{
+		$rate_symbol=getCurrencySymbolandCRate($user_info['currency_id']);
+                $rate = $rate_symbol['rate'];
+                $curr_symbol = $rate_symbol['symbol'];
 		$label_fld[] =$mod_strings[$fieldlabel];
 		$display_val = '';
 	        if($col_fields[$fieldname] != '' && $col_fields[$fieldname] != 0)





More information about the vtigercrm-commits mailing list