[Vtigercrm-commits] [vtiger-commits] r9882 - /vtigercrm/branches/5.0.3/modules/Settings/DeleteCustomField.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Nov 21 07:46:23 EST 2006
Author: richie
Date: Tue Nov 21 05:46:18 2006
New Revision: 9882
Log:
removing custom field from vtiger_field table during deletion
Modified:
vtigercrm/branches/5.0.3/modules/Settings/DeleteCustomField.php
Modified: vtigercrm/branches/5.0.3/modules/Settings/DeleteCustomField.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Settings/DeleteCustomField.php (original)
+++ vtigercrm/branches/5.0.3/modules/Settings/DeleteCustomField.php Tue Nov 21 05:46:18 2006
@@ -49,7 +49,10 @@
$dbquery = 'alter table '.$delete_module_tables[$fld_module].' drop column '.$colName;
$adb->query($dbquery);
+//To remove customfield entry from vtiger_field table
+$dbquery = 'delete from vtiger_field where tablename= "'.$delete_module_tables[$fld_module].'" and fieldname="'.$colName.'"';
+$adb->query($dbquery);
//we have to remove the entries in customview and report related tables which have this field ($colName)
$adb->query("delete from vtiger_cvcolumnlist where columnname like '%".$colName."%'");
$adb->query("delete from vtiger_cvstdfilter where columnname like '%".$colName."%'");
More information about the vtigercrm-commits
mailing list