mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 08:35:00 +00:00
Fix refactor for field.
This commit is contained in:
@@ -108,8 +108,9 @@ class Amount
|
||||
*/
|
||||
public function getCurrencies(): Collection
|
||||
{
|
||||
throw new FireflyException(sprintf('Method "%s" needs a refactor', __METHOD__));
|
||||
return TransactionCurrency::where('enabled', true)->orderBy('code', 'ASC')->get();
|
||||
/** @var User $user */
|
||||
$user = auth()->user();
|
||||
return $user->currencies()->orderBy('code','ASC')->get();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user