mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-09-03 20:52:58 -05:00
Various layout updates and tiny upgrade fixes [skip ci]
This commit is contained in:
@@ -104,7 +104,7 @@ class LoginController extends Controller
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function showLoginForm()
|
||||
public function showLoginForm(Request $request)
|
||||
{
|
||||
// is allowed to?
|
||||
$singleUserMode = FireflyConfig::get('single_user_mode', Config::get('firefly.configuration.single_user_mode'))->data;
|
||||
@@ -114,7 +114,10 @@ class LoginController extends Controller
|
||||
$allowRegistration = false;
|
||||
}
|
||||
|
||||
return view('auth.login', compact('allowRegistration'));
|
||||
$email = $request->old('email');
|
||||
$remember = $request->old('remember');
|
||||
|
||||
return view('auth.login', compact('allowRegistration', 'email', 'remember'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -109,7 +109,7 @@ class RegisterController extends Controller
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function showRegistrationForm()
|
||||
public function showRegistrationForm(Request $request)
|
||||
{
|
||||
// TODO move to FireflyConfig
|
||||
$showDemoWarning = env('SHOW_DEMO_WARNING', false);
|
||||
@@ -123,7 +123,9 @@ class RegisterController extends Controller
|
||||
return view('error', compact('message'));
|
||||
}
|
||||
|
||||
return view('auth.register', compact('showDemoWarning'));
|
||||
$email = $request->old('email');
|
||||
|
||||
return view('auth.register', compact('showDemoWarning', 'email'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -173,6 +173,22 @@ class BillRepository implements BillRepositoryInterface
|
||||
*/
|
||||
public function getBillsForAccounts(Collection $accounts): Collection
|
||||
{
|
||||
$fields = ['bills.id',
|
||||
'bills.created_at',
|
||||
'bills.updated_at',
|
||||
'bills.deleted_at',
|
||||
'bills.user_id',
|
||||
'bills.name',
|
||||
'bills.match',
|
||||
'bills.amount_min',
|
||||
'bills.amount_max',
|
||||
'bills.date',
|
||||
'bills.repeat_freq',
|
||||
'bills.skip',
|
||||
'bills.automatch',
|
||||
'bills.active',
|
||||
'bills.name_encrypted',
|
||||
'bills.match_encrypted'];
|
||||
$ids = $accounts->pluck('id')->toArray();
|
||||
$set = $this->user->bills()
|
||||
->leftJoin(
|
||||
@@ -187,8 +203,8 @@ class BillRepository implements BillRepositoryInterface
|
||||
)
|
||||
->whereIn('transactions.account_id', $ids)
|
||||
->whereNull('transaction_journals.deleted_at')
|
||||
->groupBy('bills.id')
|
||||
->get(['bills.*']);
|
||||
->groupBy($fields)
|
||||
->get($fields);
|
||||
|
||||
$set = $set->sortBy(
|
||||
function (Bill $bill) {
|
||||
|
||||
Reference in New Issue
Block a user