[Vtigercrm-commits] [vtiger-commits] r9248 - in /vtigercrm/trunk/modules/Settings: EditCompanyDetails.php OrganizationConfig.php SaveCompany.php add2db.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Sep 4 04:46:01 EDT 2006
Author: richie
Date: Mon Sep 4 02:43:55 2006
New Revision: 9248
Log:
Spelling mistake in organisationnname has been fixed --Jeri
Modified:
vtigercrm/trunk/modules/Settings/EditCompanyDetails.php
vtigercrm/trunk/modules/Settings/OrganizationConfig.php
vtigercrm/trunk/modules/Settings/SaveCompany.php
vtigercrm/trunk/modules/Settings/add2db.php
Modified: vtigercrm/trunk/modules/Settings/EditCompanyDetails.php
==============================================================================
--- vtigercrm/trunk/modules/Settings/EditCompanyDetails.php (original)
+++ vtigercrm/trunk/modules/Settings/EditCompanyDetails.php Mon Sep 4 02:43:55 2006
@@ -46,7 +46,7 @@
$sql="select * from vtiger_organizationdetails";
$result = $adb->query($sql);
-$organization_name = $adb->query_result($result,0,'organizationame');
+$organization_name = $adb->query_result($result,0,'organizationname');
$organization_address= $adb->query_result($result,0,'address');
$organization_city = $adb->query_result($result,0,'city');
$organization_state = $adb->query_result($result,0,'state');
Modified: vtigercrm/trunk/modules/Settings/OrganizationConfig.php
==============================================================================
--- vtigercrm/trunk/modules/Settings/OrganizationConfig.php (original)
+++ vtigercrm/trunk/modules/Settings/OrganizationConfig.php Mon Sep 4 02:43:55 2006
@@ -37,7 +37,7 @@
$sql="select * from vtiger_organizationdetails";
$result = $adb->query($sql);
-$organization_name = $adb->query_result($result,0,'organizationame');
+$organization_name = $adb->query_result($result,0,'organizationname');
$organization_address= $adb->query_result($result,0,'address');
$organization_city = $adb->query_result($result,0,'city');
$organization_state = $adb->query_result($result,0,'state');
Modified: vtigercrm/trunk/modules/Settings/SaveCompany.php
==============================================================================
--- vtigercrm/trunk/modules/Settings/SaveCompany.php (original)
+++ vtigercrm/trunk/modules/Settings/SaveCompany.php Mon Sep 4 02:43:55 2006
@@ -22,9 +22,9 @@
$organization_fax=$_REQUEST['organization_fax'];
$organization_website=$_REQUEST['organization_website'];
-$sql="select * from vtiger_organizationdetails where organizationame = '".$org_name."'";
+$sql="select * from vtiger_organizationdetails where organizationname = '".$org_name."'";
$result = $adb->query($sql);
-$org_name = $adb->query_result($result,0,'organizationame');
+$org_name = $adb->query_result($result,0,'organizationname');
if($org_name=='')
{
@@ -32,7 +32,7 @@
}
else
{
- $sql="update vtiger_organizationdetails set organizationame = '".$organization_name."', address = '".$organization_address."', city = '".$organization_city."', state = '".$organization_state."', code = '".$organization_code."', country = '".$organization_country."' , phone = '".$organization_phone."' , fax = '".$organization_fax."', website = '".$organization_website."' where organizationame = '".$org_name."'";
+ $sql="update vtiger_organizationdetails set organizationname = '".$organization_name."', address = '".$organization_address."', city = '".$organization_city."', state = '".$organization_state."', code = '".$organization_code."', country = '".$organization_country."' , phone = '".$organization_phone."' , fax = '".$organization_fax."', website = '".$organization_website."' where organizationname = '".$org_name."'";
}
Modified: vtigercrm/trunk/modules/Settings/add2db.php
==============================================================================
--- vtigercrm/trunk/modules/Settings/add2db.php (original)
+++ vtigercrm/trunk/modules/Settings/add2db.php Mon Sep 4 02:43:55 2006
@@ -99,16 +99,16 @@
if(!isset($organization_logoname))
$organization_logoname="";
- $sql="SELECT * FROM vtiger_organizationdetails WHERE organizationame = ".$adb->quote($org_name);
+ $sql="SELECT * FROM vtiger_organizationdetails WHERE organizationname = ".$adb->quote($org_name);
$result = $adb->query($sql);
- $org_name = from_html($adb->query_result($result,0,'organizationame'));
+ $org_name = from_html($adb->query_result($result,0,'organizationname'));
$org_logo = $adb->query_result($result,0,'logoname');
if($org_name=='')
{
$sql="INSERT INTO vtiger_organizationdetails
- (organizationame, address, city, state, code, country, phone, fax, website, logoname)
+ (organizationname, address, city, state, code, country, phone, fax, website, logoname)
VALUES (".$adb->quote($organization_name).
",".$adb->quote($organization_address).
",".$adb->quote($organization_city).
@@ -143,7 +143,7 @@
}
$sql = "UPDATE vtiger_organizationdetails
- SET organizationame = ".$adb->quote($organization_name).",
+ SET organizationname = ".$adb->quote($organization_name).",
address = ".$adb->quote($organization_address).",
city = ".$adb->quote($organization_city).",
state = ".$adb->quote($organization_state).",
@@ -153,7 +153,7 @@
fax = ".$adb->quote($organization_fax).",
website = ".$adb->quote($organization_website).",
logoname = ".$adb->quote($organization_logoname)."
- WHERE organizationame = ".$adb->quote($org_name);
+ WHERE organizationname = ".$adb->quote($org_name);
}
$adb->query($sql);
More information about the vtigercrm-commits
mailing list