mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-21 09:00:07 +00:00
Expand API options for available budgets and journal links
This commit is contained in:
@@ -153,6 +153,9 @@ class AvailableBudgetController extends Controller
|
||||
{
|
||||
$data = $request->getAll();
|
||||
$currency = $this->currencyRepository->findNull($data['transaction_currency_id']);
|
||||
if (null === $currency) {
|
||||
$this->currencyRepository->findByCodeNull($data['transaction_currency_code']);
|
||||
}
|
||||
if (null === $currency) {
|
||||
throw new FireflyException('Could not find the indicated currency.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user