Merge pull request #10635 from inietov/fixes/inconsistencies_between_checkout_checkin_dates

Fixes #10627 Inconsistencies between checkout/checkin dates on asset history and activity log
This commit is contained in:
snipe 2022-02-08 10:18:52 -08:00 committed by GitHub
commit ad52f9df72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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;

View file

@ -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>