[Vtigercrm-commits] [vtiger-commits] r10166 - in /vtigercrm/branches/5.0.3/include/utils: DetailViewUtils.php EditViewUtils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Feb 12 02:33:03 EST 2007
Author: jerrydgeorge
Date: Mon Feb 12 00:32:45 2007
New Revision: 10166
Log:
wrong order in event status has been fixed.Fixes #3006
Modified:
vtigercrm/branches/5.0.3/include/utils/DetailViewUtils.php
vtigercrm/branches/5.0.3/include/utils/EditViewUtils.php
Modified: vtigercrm/branches/5.0.3/include/utils/DetailViewUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/DetailViewUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/DetailViewUtils.php Mon Feb 12 00:32:45 2007
@@ -99,7 +99,7 @@
$label_fld[] = $mod_strings[$fieldlabel];
$label_fld[] = $col_fields[$fieldname];
- $pick_query="select * from vtiger_".$fieldname;
+ $pick_query="select * from vtiger_".$fieldname." order by sortorderid";
$pickListResult = $adb->query($pick_query);
$noofpickrows = $adb->num_rows($pickListResult);
Modified: vtigercrm/branches/5.0.3/include/utils/EditViewUtils.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/utils/EditViewUtils.php (original)
+++ vtigercrm/branches/5.0.3/include/utils/EditViewUtils.php Mon Feb 12 00:32:45 2007
@@ -126,7 +126,8 @@
elseif($uitype == 15 || $uitype == 16 || $uitype == 111) //uitype 111 added for non editable picklist - ahmed
{
$editview_label[]=$mod_strings[$fieldlabel];
- $pick_query="select * from vtiger_".$fieldname." order by ".$fieldname." ASC";
+ //Query modified to fix the order of the picklist values ticket #3006
+ $pick_query="select * from vtiger_".$fieldname." order by sortorderid";
$pickListResult = $adb->query($pick_query);
$noofpickrows = $adb->num_rows($pickListResult);
More information about the vtigercrm-commits
mailing list