[Vtigercrm-commits] [vtiger-commits] r9644 - /vtigercrm/branches/5.0.2/modules/Settings/AddCustomFieldToDB.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Oct 17 02:25:59 EDT 2006
Author: jerrydgeorge
Date: Tue Oct 17 00:25:48 2006
New Revision: 9644
Log:
table name constructed from the module name for custom field save--Jeri
Modified:
vtigercrm/branches/5.0.2/modules/Settings/AddCustomFieldToDB.php
Modified: vtigercrm/branches/5.0.2/modules/Settings/AddCustomFieldToDB.php
==============================================================================
--- vtigercrm/branches/5.0.2/modules/Settings/AddCustomFieldToDB.php (original)
+++ vtigercrm/branches/5.0.2/modules/Settings/AddCustomFieldToDB.php Tue Oct 17 00:25:48 2006
@@ -79,25 +79,7 @@
//Assigning the vtiger_table Name
$tableName ='';
- if($fldmodule == 'Leads')
- {
- $tableName='vtiger_leadscf';
- }
- elseif($fldmodule == 'Accounts')
- {
-
- $tableName='vtiger_accountscf';
- }
- elseif($fldmodule == 'Contacts')
- {
-
- $tableName='vtiger_contactscf';
- }
- elseif($fldmodule == 'Potentials')
- {
- $tableName='vtiger_potentialscf';
- }
- elseif($fldmodule == 'HelpDesk')
+ if($fldmodule == 'HelpDesk')
{
$tableName='vtiger_ticketcf';
}
@@ -113,25 +95,9 @@
{
$tableName='vtiger_pricebookcf';
}
- elseif($fldmodule == 'Quotes')
- {
- $tableName='vtiger_quotescf';
- }
- elseif($fldmodule == 'PurchaseOrder')
- {
- $tableName='vtiger_purchaseordercf';
- }
- elseif($fldmodule == 'SalesOrder')
- {
- $tableName='vtiger_salesordercf';
- }
- elseif($fldmodule == 'Invoice')
- {
- $tableName='vtiger_invoicecf';
- }
- elseif($fldmodule == 'Campaigns')
- {
- $tableName='vtiger_campaignscf';
+ elseif($fldmodule != '')
+ {
+ $tableName= 'vtiger_'.strtolower($fldmodule).'cf';
}
//Assigning the uitype
$fldlength=$_REQUEST['fldLength'];
More information about the vtigercrm-commits
mailing list