mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix #2467
This commit is contained in:
@@ -206,7 +206,7 @@ class BillController extends Controller
|
||||
|
||||
/** @var Collection $bills */
|
||||
$bills = $paginator->getCollection()->map(
|
||||
function (Bill $bill) use ($transformer) {
|
||||
static function (Bill $bill) use ($transformer) {
|
||||
$return = $transformer->transform($bill);
|
||||
$return['currency'] = $bill->transactionCurrency;
|
||||
|
||||
|
@@ -95,6 +95,10 @@ class Range
|
||||
$dateTimeFormat = (string)trans('config.date_time');
|
||||
$defaultCurrency = app('amount')->getDefaultCurrency();
|
||||
|
||||
// also format for moment JS:
|
||||
$madMomentJS = (string)trans('config.month_and_day_moment_js');
|
||||
|
||||
app('view')->share('madMomentJS', $madMomentJS);
|
||||
app('view')->share('monthAndDayFormat', $monthAndDayFormat);
|
||||
app('view')->share('dateTimeFormat', $dateTimeFormat);
|
||||
app('view')->share('defaultCurrency', $defaultCurrency);
|
||||
|
Reference in New Issue
Block a user