Merge pull request #19225 from colemanw/select2Tweak
[civicrm-core.git] / CRM / Core / BAO / FinancialTrxn.php
index e4aeae7bd23d41900fdbc47d1dc39bb60af8e00a..0e1499e208094dd118e7f9b75f941184351aa402 100644 (file)
@@ -415,7 +415,7 @@ WHERE ceft.entity_id = %1";
     $fItemParams
       = [
         'financial_account_id' => $financialAccount,
-        'contact_id' => CRM_Core_DAO::getFieldValue('CRM_Core_DAO_Domain', CRM_Core_Config::domainID(), 'contact_id'),
+        'contact_id' => CRM_Core_BAO_Domain::getDomain()->contact_id,
         'created_date' => date('YmdHis'),
         'transaction_date' => $params['trxnParams']['trxn_date'],
         'amount' => $amount,