mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-10-12 16:32:04 -05:00
Still not sure what's causing the empty strings to appear.
This commit is contained in:
1 parent
19443a5b34
commit
1e9eb843c0
1 file changed
+1
@@ -56,6 +56,7 @@ class TransactionFactory
|
||||
$currencyId = $data['currency_id'] ?? null;
|
||||
$currencyId = isset($data['currency']) ? $data['currency']->id : $currencyId;
|
||||
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
|
||||
}
|
||||
if (null === $currencyId) {
|
||||
|
||||
Reference in new issue
Block a user