A free open source IT asset/license management system
Fixed activity report
snipe01342ca266d9
diff --git a/app/Models/Actionlog.php b/app/Models/Actionlog.phpindex 7540568387..41a8feb64f 100755--- a/app/Models/Actionlog.php+++ b/app/Models/Actionlog.php@@ -30,7 +30,7 @@ class Actionlog extends SnipeModel** @var array*/- protected $searchableAttributes = ['action_type', 'note', 'log_meta'];+ protected $searchableAttributes = ['action_type', 'note', 'log_meta','user_id'];/*** The relations and their attributes that should be included when searching the model.@@ -38,7 +38,8 @@ class Actionlog extends SnipeModel* @var array*/protected $searchableRelations = [- 'company' => ['name']+ 'company' => ['name'],+ 'user' => ['first_name','last_name','username'],];/**diff --git a/resources/views/reports/activity.blade.php b/resources/views/reports/activity.blade.phpindex 5f9bddfcec..d9e96d2c94 100644--- a/resources/views/reports/activity.blade.php+++ b/resources/views/reports/activity.blade.php@@ -35,7 +35,6 @@id="activityReport"data-url="{{ route('api.activity.index') }}"data-mobile-responsive="true"- data-toggle="table"class="table table-striped snipe-table"data-export-options='{"fileName": "activity-report-{{ date('Y-m-d') }}",@@ -46,7 +45,7 @@<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="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-searchable="true" data-sortable="true" 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><th class="col-sm-3" data-field="item" data-formatter="polymorphicItemFormatter">{{ trans('general.item') }}</th>