Skip to content
Snippets Groups Projects
Commit 909a777b authored by lobo's avatar lobo
Browse files

CRM-12355

----------------------------------------
* CRM-12355: Upgrade fails with "CREATE TEMPORARY TABLE ... A table must have at least 1 column]"
  http://issues.civicrm.org/jira/browse/CRM-12355
parent c75e8bb2
No related branches found
No related tags found
No related merge requests found
......@@ -382,14 +382,13 @@ AND ceft.entity_table = 'civicrm_contribution'
);
$accountType = key(CRM_Core_PseudoConstant::accountOptionValues('financial_account_type', NULL, " AND v.name = 'Asset' "));
$financialAccountId =
$query = "
$query = "
SELECT id
FROM civicrm_financial_account
WHERE is_default = 1
AND financial_account_type_id = {$accountType}
";
CRM_Core_DAO::singleValueQuery($query);
$financialAccountId = CRM_Core_DAO::singleValueQuery($query);
$accountRelationsips = CRM_Core_PseudoConstant::accountOptionValues('account_relationship', NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment