A free open source IT asset/license management system
Change date showed in the activity report view, the condition is now on action_date
Ivan Nieto Vivancoe621eaf456e3
diff --git a/app/Http/Transformers/ActionlogsTransformer.php b/app/Http/Transformers/ActionlogsTransformer.phpindex e13a1686e5..9618624ae0 100644--- a/app/Http/Transformers/ActionlogsTransformer.php+++ b/app/Http/Transformers/ActionlogsTransformer.php@@ -95,7 +95,7 @@ class ActionlogsTransformer'id' => (int) $actionlog->location->id,'name' => e($actionlog->location->name)] : null,- 'created_at' => ($actionlog->action_date) ? Helper::getFormattedDateObject($actionlog->action_date, 'datetime'):Helper::getFormattedDateObject($actionlog->created_at, 'datetime'),+ 'created_at' => Helper::getFormattedDateObject($actionlog->created_at, 'datetime'),'updated_at' => Helper::getFormattedDateObject($actionlog->updated_at, 'datetime'),'next_audit_date' => ($actionlog->itemType()=='asset') ? Helper::getFormattedDateObject($actionlog->calcNextAuditDate(null, $actionlog->item), 'date'): null,'days_to_next_audit' => $actionlog->daysUntilNextAudit($settings->audit_interval, $actionlog->item),@@ -115,7 +115,7 @@ class ActionlogsTransformer'note' => ($actionlog->note) ? e($actionlog->note): null,'signature_file' => ($actionlog->accept_signature) ? route('log.signature.view', ['filename' => $actionlog->accept_signature ]) : null,'log_meta' => ((isset($clean_meta)) && (is_array($clean_meta))) ? $clean_meta: null,- 'action_date' => ($actionlog->action_date) ? Helper::getFormattedDateObject($actionlog->action_date, 'datetime'): null,+ 'action_date' => ($actionlog->action_date) ? Helper::getFormattedDateObject($actionlog->action_date, 'datetime'): Helper::getFormattedDateObject($actionlog->created_at, 'datetime'),];diff --git a/resources/views/reports/activity.blade.php b/resources/views/reports/activity.blade.phpindex f0cc5f25ec..5f9bddfcec 100644--- a/resources/views/reports/activity.blade.php+++ b/resources/views/reports/activity.blade.php@@ -45,7 +45,7 @@<thead><tr><th data-field="icon" style="width: 40px;" class="hidden-xs" data-formatter="iconFormatter">Icon</th>- <th class="col-sm-3" data-searchable="false" data-sortable="true" data-field="created_at" data-formatter="dateDisplayFormatter">{{ trans('general.date') }}</th>+ <th class="col-sm-3" data-searchable="false" data-sortable="true" data-field="action_date" data-formatter="dateDisplayFormatter">{{ trans('general.date') }}</th><th class="col-sm-2" data-field="admin" data-formatter="usersLinkObjFormatter">{{ trans('general.admin') }}</th><th class="col-sm-2" data-field="action_type">{{ trans('general.action') }}</th><th class="col-sm-1" data-field="type" data-formatter="itemTypeFormatter">{{ trans('general.type') }}</th>