[Vtigercrm-commits] [vtiger-commits] r4506 - /vtigercrm/trunk/modules/Settings/AddCustomFieldToDB.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Mar 28 00:13:03 EST 2006
Author: saraj
Date: Mon Mar 27 22:12:59 2006
New Revision: 4506
Log:
junk code has been removed
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 Mon Mar 27 22:12:59 2006
@@ -15,16 +15,7 @@
$fldType= $_REQUEST['fieldType'];
$parenttab=$_REQUEST['parenttab'];
-function fetchTabIDVal($fldmodule)
-{
-
- global $adb;
- $query = "select tabid from tab where tablabel='" .$fldmodule ."'";
- $tabidresult = $adb->query($query);
- return $adb->query_result($tabidresult,0,"tabid");
-}
-
-$tabid = fetchTabIDVal($fldmodule);
+$tabid = getTabid($fldmodule);
if(get_magic_quotes_gpc() == 1)
{
@@ -259,8 +250,6 @@
{
$query = "update field set fieldlabel='".$fldlabel."',typeofdata='".$uichekdata."' where fieldid=".$_REQUEST['fieldid'];
$adb->query($query);
- $adb->alterTable($tableName, $columnName, "Delete_Column");
- $adb->alterTable($tableName, $columnName." ".$type, "Add_Column");
}
//Inserting values into profile2field tables
$sql1 = "select * from profile";
More information about the vtigercrm-commits
mailing list