[Vtigercrm-commits] [vtiger-commits] r11014 - /vtigercrm/branches/5.0.3/include/PopulateComboValues.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu May 24 07:34:13 EDT 2007
Author: richie
Date: Thu May 24 05:33:55 2007
New Revision: 11014
Log:
fix for picklist entry to change noneditable--Allen.Fixes #3734
Modified:
vtigercrm/branches/5.0.3/include/PopulateComboValues.php
Modified: vtigercrm/branches/5.0.3/include/PopulateComboValues.php
==============================================================================
--- vtigercrm/branches/5.0.3/include/PopulateComboValues.php (original)
+++ vtigercrm/branches/5.0.3/include/PopulateComboValues.php Thu May 24 05:33:55 2007
@@ -74,8 +74,8 @@
//presence = 1 means you can edit the picklist value
$noneditable_tables = Array("ticketstatus","taskstatus","eventstatus","eventstatus","faqstatus","quotestage","postatus","sostatus","invoicestatus");
$noneditable_values = Array(
- "sales_stage"=>"Closed Won",
- "sales_stage"=>"Closed Lost",
+ "Closed Won"=>"sales_stage",
+ "Closed Lost"=>"sales_stage",
);
foreach($noneditable_tables as $picklistname)
{
@@ -83,7 +83,7 @@
}
foreach($noneditable_values as $picklistname => $value)
{
- $adb->query("update vtiger_".$picklistname." set PRESENCE=0 where $picklistname='".$value."'");
+ $adb->query("update vtiger_".$value." set PRESENCE=0 where $value='".$picklistname."'");
}
$log->debug("Exiting create_tables () method ...");
More information about the vtigercrm-commits
mailing list