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

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 20 05:49:07 EST 2006


Author: saraj
Date: Mon Mar 20 03:49:02 2006
New Revision: 4329

Log:
html option tag has been removed

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 Mon Mar 20 03:49:02 2006
@@ -307,6 +307,7 @@
 
 	function getStdFilterCriteria($selcriteria = "")
         {
+		$filter = array();
 
                 $stdfilter = Array("custom"=>"Custom",
 					 "prevfy"=>"Previous FY",
@@ -339,13 +340,18 @@
 		{
 			if($FilterKey == $selcriteria)
 			{
-			 $shtml .= "<option selected value='".$FilterKey."'>".$FilterValue."</option>";
+				$shtml['value'] = $FilterKey;
+				$shtml['text'] = $FilterValue;
+				$shtml['selected'] = "selected";
 			}else
 			{
-			 $shtml .= "<option value='".$FilterKey."'>".$FilterValue."</option>";
-			}
-		}
-		return $shtml;
+				$shtml['value'] = $FilterKey;
+				$shtml['text'] = $FilterValue;
+				$shtml['selected'] = "";
+			}
+		$filter[] = $shtml;
+		}
+		return $filter;
 
         }
 





More information about the vtigercrm-commits mailing list