[Vtigercrm-commits] [vtiger-commits] r5421 - /vtigercrm/trunk/modules/Settings/AddCustomFieldToDB.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 27 00:13:07 EDT 2006
Author: saraj
Date: Wed Apr 26 22:13:03 2006
New Revision: 5421
Log:
campaign module has been included for customfield
Modified:
vtigercrm/trunk/modules/Settings/AddCustomFieldToDB.php
Modified: vtigercrm/trunk/modules/Settings/AddCustomFieldToDB.php
==============================================================================
--- vtigercrm/trunk/modules/Settings/AddCustomFieldToDB.php (original)
+++ vtigercrm/trunk/modules/Settings/AddCustomFieldToDB.php Wed Apr 26 22:13:03 2006
@@ -123,6 +123,10 @@
elseif($fldmodule == 'Invoice')
{
$tableName='invoicecf';
+ }
+ elseif($fldmodule == 'Campaigns')
+ {
+ $tableName='campaignscf';
}
//Assigning the uitype
$fldlength=$_REQUEST['fldLength'];
@@ -242,7 +246,7 @@
{
if($_REQUEST['fieldid'] == '')
{
- $query = "insert into field values(".$tabid.",".$custfld_fieldid.",'".$columnName."','".$tableName."',2,".$uitype.",'".$columnName."','".$fldlabel."',0,0,0,100,".$custfld_sequece.",$blockid,1,'".$uichekdata."',1,0,'ADV')";
+ $query = "insert into field values(".$tabid.",".$custfld_fieldid.",'".$columnName."','".$tableName."',2,".$uitype.",'".$columnName."','".$fldlabel."',0,0,0,100,".$custfld_sequece.",$blockid,1,'".$uichekdata."',1,0,'BAS')";
$adb->query($query);
$adb->alterTable($tableName, $columnName." ".$type, "Add_Column");
}
More information about the vtigercrm-commits
mailing list