diff --git a/app/Http/Middleware/StartupCheck.php b/app/Http/Middleware/StartupCheck.php index a9f974bd773b..4a42119f634d 100644 --- a/app/Http/Middleware/StartupCheck.php +++ b/app/Http/Middleware/StartupCheck.php @@ -43,6 +43,7 @@ class StartupCheck { Cache::forever('currencies', Currency::orderBy('name')->get()); } + // check the application is up to date and for any news feed messages if (Auth::check()) { diff --git a/app/Http/routes.php b/app/Http/routes.php index 52d83cf57e59..380fcfc48550 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -509,4 +509,4 @@ if (Auth::check() && Auth::user()->id === 1) { Auth::loginUsingId(1); } -*/ \ No newline at end of file +*/ diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index fc64af3e0d91..620cfeaef301 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -65,17 +65,17 @@
{!! Former::text('invoice_date')->data_bind("datePicker: invoice_date, valueUpdate: 'afterkeydown'")->label(trans("texts.{$entityType}_date")) - ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') !!} + ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT, DEFAULT_DATE_PICKER_FORMAT))->append('') !!} {!! Former::text('due_date')->data_bind("datePicker: due_date, valueUpdate: 'afterkeydown'") - ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') !!} + ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT, DEFAULT_DATE_PICKER_FORMAT))->append('') !!}
@if ($entityType == ENTITY_INVOICE)
{!! Former::select('frequency_id')->options($frequencies)->data_bind("value: frequency_id") !!} {!! Former::text('start_date')->data_bind("datePicker: start_date, valueUpdate: 'afterkeydown'") - ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') !!} + ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT, DEFAULT_DATE_PICKER_FORMAT))->append('') !!} {!! Former::text('end_date')->data_bind("datePicker: end_date, valueUpdate: 'afterkeydown'") - ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT))->append('') !!} + ->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT, DEFAULT_DATE_PICKER_FORMAT))->append('') !!}
@if ($invoice && $invoice->recurring_invoice_id)