A free open source IT asset/license management system
Add custom date to checkin actionlogs and show it in the history of the asset tab
Ivan Nieto Vivancod71aa859fccf
diff --git a/app/Models/Loggable.php b/app/Models/Loggable.phpindex 3c44009aab..988eda3aa4 100644--- a/app/Models/Loggable.php+++ b/app/Models/Loggable.php@@ -112,6 +112,7 @@ trait Loggable$log->location_id = null;$log->note = $note;+ $log->action_date= $action_date;if (Auth::user()) {$log->user_id = Auth::user()->id;diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.phpindex 51748b281f..428a5389ca 100755--- a/resources/views/hardware/view.blade.php+++ b/resources/views/hardware/view.blade.php@@ -1083,7 +1083,7 @@<thead><tr><th data-visible="true" style="width: 40px;" class="hidden-xs">{{ trans('admin/hardware/table.icon') }}</th>- <th class="col-sm-2" data-visible="true" data-field="created_at" data-formatter="dateDisplayFormatter">{{ trans('general.date') }}</th>+ <th class="col-sm-2" data-visible="true" data-field="action_date" data-formatter="dateDisplayFormatter">{{ trans('general.date') }}</th><th class="col-sm-1" data-visible="true" data-field="admin" data-formatter="usersLinkObjFormatter">{{ trans('general.admin') }}</th><th class="col-sm-1" data-visible="true" data-field="action_type">{{ trans('general.action') }}</th><th class="col-sm-2" data-visible="true" data-field="item" data-formatter="polymorphicItemFormatter">{{ trans('general.item') }}</th>