mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Still not sure what's causing the empty strings to appear.
This commit is contained in:
@@ -56,6 +56,7 @@ class TransactionFactory
|
|||||||
$currencyId = $data['currency_id'] ?? null;
|
$currencyId = $data['currency_id'] ?? null;
|
||||||
$currencyId = isset($data['currency']) ? $data['currency']->id : $currencyId;
|
$currencyId = isset($data['currency']) ? $data['currency']->id : $currencyId;
|
||||||
if ('' === $data['amount']) {
|
if ('' === $data['amount']) {
|
||||||
|
Log::error('Empty string in data.', $data);
|
||||||
throw new FireflyException('Amount is an empty string, which Firefly III cannot handle. Apologies.'); // @codeCoverageIgnore
|
throw new FireflyException('Amount is an empty string, which Firefly III cannot handle. Apologies.'); // @codeCoverageIgnore
|
||||||
}
|
}
|
||||||
if (null === $currencyId) {
|
if (null === $currencyId) {
|
||||||
|
Reference in New Issue
Block a user