CRM-21039, Retrieve relationship using entity table
authorPradeep Nayak <pradpnayak@gmail.com>
Mon, 7 Aug 2017 11:01:09 +0000 (16:31 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Mon, 7 Aug 2017 11:53:55 +0000 (17:23 +0530)
----------------------------------------
* CRM-21039: Trying to add Asset account relationship throws validation error
  https://issues.civicrm.org/jira/browse/CRM-21039

fixed style warning

CRM/Financial/Form/FinancialTypeAccount.php

index e686724d37010168cbf74d14d8297d05360e4a8a..7e63f87058ae4ab141f8a99a64752faa09e997e9 100644 (file)
@@ -241,6 +241,7 @@ class CRM_Financial_Form_FinancialTypeAccount extends CRM_Contribute_Form {
       $params = array(
         'account_relationship' => $values['account_relationship'],
         'entity_id' => $self->_aid,
+        'entity_table' => 'civicrm_financial_type',
       );
       $defaults = array();
       if ($self->_action == CRM_Core_Action::ADD) {