[Vtigercrm-commits] [vtiger-commits] r9683 - /vtigercrm/branches/4.2/modules/Orders/pdf_dataso.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Oct 24 14:46:46 EDT 2006
Author: allanbush
Date: Tue Oct 24 12:46:39 2006
New Revision: 9683
Log:
Prevent a SQL error when creating a PDF of a sales order without an attached quote.
Modified:
vtigercrm/branches/4.2/modules/Orders/pdf_dataso.php
Modified: vtigercrm/branches/4.2/modules/Orders/pdf_dataso.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Orders/pdf_dataso.php (original)
+++ vtigercrm/branches/4.2/modules/Orders/pdf_dataso.php Tue Oct 24 12:46:39 2006
@@ -30,7 +30,9 @@
$account_name = getAccountName($focus->column_fields[account_id]);
// populate data
-$quote_name = getQuoteName($focus->column_fields["quote_id"]);
+if($focus->column_fields['quote_id']) {
+ $quote_name = getQuoteName($focus->column_fields["quote_id"]);
+}
$po_name = $focus->column_fields["purchaseorder"];
$subject = $focus->column_fields["subject"];
More information about the vtigercrm-commits
mailing list