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