[Vtigercrm-commits] [vtiger-commits] r5955 - /vtigercrm/trunk/modules/CustomView/CustomView.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Sun May 14 07:58:05 EDT 2006


Author: saraj
Date: Sun May 14 05:58:00 2006
New Revision: 5955

Log:
i18n for All option in customview done - ahmed

Modified:
    vtigercrm/trunk/modules/CustomView/CustomView.php

Modified: vtigercrm/trunk/modules/CustomView/CustomView.php
==============================================================================
--- vtigercrm/trunk/modules/CustomView/CustomView.php (original)
+++ vtigercrm/trunk/modules/CustomView/CustomView.php Sun May 14 05:58:00 2006
@@ -154,12 +154,18 @@
 	function getCustomViewCombo($viewid='')
 	{
 		global $adb;
+		global $app_strings;
 		$tabid = getTabid($this->customviewmodule);
 		$ssql = "select customview.* from customview inner join tab on tab.name = customview.entitytype";
 		$ssql .= " where tab.tabid=".$tabid;
 		$result = $adb->query($ssql);
 		while($cvrow=$adb->fetch_array($result))
 		{
+			if($cvrow['viewname'] == 'All')
+			{
+				$cvrow['viewname'] = $app_strings['COMBO_ALL'];
+			}
+														
 			if($cvrow['cvid'] == $viewid)
 			{
 				$shtml .= "<option selected value=\"".$cvrow['cvid']."\">".$cvrow['viewname']."</option>";





More information about the vtigercrm-commits mailing list