[Vtigercrm-commits] [vtiger-commits] r9663 - in /vtigercrm/branches/4.2/modules: Accounts/Account.php Contacts/Contact.php Leads/Lead.php Potentials/Opportunity.php Products/Product.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Oct 18 16:29:25 EDT 2006
Author: allanbush
Date: Wed Oct 18 14:29:22 2006
New Revision: 9663
Log:
Fixed Postgres SQL error when exporting with custom fields.
Modified:
vtigercrm/branches/4.2/modules/Accounts/Account.php
vtigercrm/branches/4.2/modules/Contacts/Contact.php
vtigercrm/branches/4.2/modules/Leads/Lead.php
vtigercrm/branches/4.2/modules/Potentials/Opportunity.php
vtigercrm/branches/4.2/modules/Products/Product.php
Modified: vtigercrm/branches/4.2/modules/Accounts/Account.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Accounts/Account.php (original)
+++ vtigercrm/branches/4.2/modules/Accounts/Account.php Wed Oct 18 14:29:22 2006
@@ -585,11 +585,11 @@
//construct query as below
if($i == 0)
{
- $sql3 .= "accountscf.".$columnName. " '" .$fieldlable."'";
+ $sql3 .= "accountscf.".$columnName. " AS \"" .$fieldlable.'"';
}
else
{
- $sql3 .= ", accountscf.".$columnName. " '" .$fieldlable."'";
+ $sql3 .= ", accountscf.".$columnName. " AS \"" .$fieldlable.'"';
}
}
Modified: vtigercrm/branches/4.2/modules/Contacts/Contact.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Contacts/Contact.php (original)
+++ vtigercrm/branches/4.2/modules/Contacts/Contact.php Wed Oct 18 14:29:22 2006
@@ -458,11 +458,11 @@
//construct query as below
if($i == 0)
{
- $sql3 .= "contactscf.".$columnName. " '" .$fieldlable."'";
+ $sql3 .= "contactscf.".$columnName. " AS \"" .$fieldlable.'"';
}
else
{
- $sql3 .= ", contactscf.".$columnName. " '" .$fieldlable."'";
+ $sql3 .= ", contactscf.".$columnName. " AS \"" .$fieldlable.'"';
}
}
Modified: vtigercrm/branches/4.2/modules/Leads/Lead.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Leads/Lead.php (original)
+++ vtigercrm/branches/4.2/modules/Leads/Lead.php Wed Oct 18 14:29:22 2006
@@ -205,11 +205,11 @@
//construct query as below
if($i == 0)
{
- $sql3 .= "leadscf.".$columnName. " '" .$fieldlable."'";
+ $sql3 .= "leadscf.".$columnName. " AS \"" .$fieldlable.'"';
}
else
{
- $sql3 .= ", leadscf.".$columnName. " '" .$fieldlable."'";
+ $sql3 .= ", leadscf.".$columnName. " AS \"" .$fieldlable.'"';
}
}
Modified: vtigercrm/branches/4.2/modules/Potentials/Opportunity.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Potentials/Opportunity.php (original)
+++ vtigercrm/branches/4.2/modules/Potentials/Opportunity.php Wed Oct 18 14:29:22 2006
@@ -279,11 +279,11 @@
//construct query as below
if($i == 0)
{
- $sql3 .= "potentialscf.".$columnName. " '" .$fieldlable."'";
+ $sql3 .= "potentialscf.".$columnName. " AS \"" .$fieldlable.'"';
}
else
{
- $sql3 .= ", potentialscf.".$columnName. " '" .$fieldlable."'";
+ $sql3 .= ", potentialscf.".$columnName. " AS \"" .$fieldlable.'"';
}
}
return $sql3;
Modified: vtigercrm/branches/4.2/modules/Products/Product.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Products/Product.php (original)
+++ vtigercrm/branches/4.2/modules/Products/Product.php Wed Oct 18 14:29:22 2006
@@ -180,11 +180,11 @@
//construct query as below
if($i == 0)
{
- $sql3 .= "productcf.".$columnName. " '" .$fieldlable."'";
+ $sql3 .= "productcf.".$columnName. " AS \"" .$fieldlable.'"';
}
else
{
- $sql3 .= ", productcf.".$columnName. " '" .$fieldlable."'";
+ $sql3 .= ", productcf.".$columnName. " AS \"" .$fieldlable.'"';
}
}
More information about the vtigercrm-commits
mailing list