mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Fixed [ch15086] - [object object] in companies date displays
This commit is contained in:
parent
0eeeb24cae
commit
249b9b7509
|
@ -82,12 +82,14 @@ class CompanyPresenter extends Presenter
|
|||
"sortable" => true,
|
||||
"visible" => false,
|
||||
"title" => trans('general.updated_at'),
|
||||
"formatter" => 'createdAtFormatter',
|
||||
],[
|
||||
"field" => "created_at",
|
||||
"searchable" => false,
|
||||
"sortable" => true,
|
||||
"visible" => false,
|
||||
"title" => trans('general.created_at'),
|
||||
"formatter" => 'createdAtFormatter',
|
||||
],[
|
||||
"field" => "actions",
|
||||
"searchable" => false,
|
||||
|
|
|
@ -391,8 +391,8 @@
|
|||
|
||||
|
||||
function createdAtFormatter(value) {
|
||||
if ((value) && (value.date)) {
|
||||
return value.date;
|
||||
if ((value) && (value.formatted)) {
|
||||
return value.formatted;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue