mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-06-11 04:54:08 +00:00
Merge branch 'develop' into adminlte
This commit is contained in:
@@ -85,7 +85,7 @@ class StoreRequest extends FormRequest
|
||||
'apply_rules' => [new IsBoolean()],
|
||||
'active' => [new IsBoolean()],
|
||||
'repeat_until' => ['nullable', 'date'],
|
||||
'nr_of_repetitions' => ['nullable', 'numeric', 'min:1', 'max:31'],
|
||||
'nr_of_repetitions' => ['nullable', 'numeric', 'min:1', 'max:255'],
|
||||
|
||||
'repetitions.*.type' => ['required', 'in:daily,weekly,ndom,monthly,yearly'],
|
||||
'repetitions.*.moment' => ['min:0', 'max:10'],
|
||||
|
||||
@@ -94,7 +94,7 @@ class UpdateRequest extends FormRequest
|
||||
'apply_rules' => [new IsBoolean()],
|
||||
'active' => [new IsBoolean()],
|
||||
'repeat_until' => ['nullable', 'date'],
|
||||
'nr_of_repetitions' => ['nullable', 'numeric', 'min:1', 'max:31'],
|
||||
'nr_of_repetitions' => ['nullable', 'numeric', 'min:1', 'max:255'],
|
||||
|
||||
'repetitions.*.type' => 'in:daily,weekly,ndom,monthly,yearly',
|
||||
'repetitions.*.moment' => ['min:0', 'max:10', 'numeric'],
|
||||
|
||||
@@ -83,12 +83,7 @@ final class ShowController extends Controller
|
||||
* @throws FireflyException
|
||||
* @throws NotFoundExceptionInterface
|
||||
*/
|
||||
public function show(
|
||||
Request $request,
|
||||
Account $account,
|
||||
?Carbon $start = null,
|
||||
?Carbon $end = null
|
||||
): Factory|\Illuminate\Contracts\View\View|Redirector|RedirectResponse {
|
||||
public function show(Request $request, Account $account, ?Carbon $start = null, ?Carbon $end = null): Factory|\Illuminate\Contracts\View\View|Redirector|RedirectResponse {
|
||||
if (0 === $account->id) {
|
||||
throw new NotFoundHttpException();
|
||||
}
|
||||
@@ -115,7 +110,7 @@ final class ShowController extends Controller
|
||||
$attachments = $this->repository->getAttachments($account);
|
||||
$today = today(config('app.timezone'));
|
||||
$subTitleIcon = config(sprintf('firefly.subIconsByIdentifier.%s', $account->accountType->type));
|
||||
$page = (int) $request->get('page');
|
||||
$page = (int) $request->input('page');
|
||||
$pageSize = (int) Preferences::get('listPageSize', 50)->data;
|
||||
$accountCurrency = $this->repository->getAccountCurrency($account);
|
||||
$currency = $accountCurrency ?? $this->primaryCurrency;
|
||||
|
||||
Reference in New Issue
Block a user