Skip to content

Firefly III: a personal finances manager

Fix some bugs in the import tasks.

James Cole4bbc3c3bd88e
diff --git a/app/lib/Firefly/Queue/Import.php b/app/lib/Firefly/Queue/Import.php
index ea3d8aa8e2..70670a4824 100644
--- a/app/lib/Firefly/Queue/Import.php
+++ b/app/lib/Firefly/Queue/Import.php
@@ -90,7 +90,7 @@ class Import
switch ($payload['data']['type']['type']) {
case 'beneficiary':
$payload['class'] = 'Account';
- $payload['data']['account_type'] = 'Beneficiary account';
+ $payload['data']['account_type'] = 'Expense account';
$this->importAccount($job, $payload);
break;
case 'budget':
@@ -135,7 +135,7 @@ class Import
// if Firefly tries to import a beneficiary, Firefly will "merge" already existing ones,
// so we don't care:
- if (isset($payload['data']['account_type']) && $payload['data']['account_type'] == 'Beneficiary account') {
+ if (isset($payload['data']['account_type']) && $payload['data']['account_type'] == 'Expense account') {
// store beneficiary
$acct = $this->_accounts->createOrFindBeneficiary($payload['data']['name']);
\Log::debug('Imported ' . $payload['class'] . ' "' . $payload['data']['name'] . '".');