Added - changelog searchable in history tab

This commit is contained in:
snipe 2017-12-12 05:10:13 -08:00
parent 612f23f6e0
commit e4ab4024c5
2 changed files with 6 additions and 2 deletions

View file

@ -218,7 +218,8 @@ class Actionlog extends SnipeModel
$query->where('companies.name', 'LIKE', '%'.$search.'%');
});
})->orWhere('action_type', 'LIKE', '%'.$search.'%')
->orWhere('note', 'LIKE', '%'.$search.'%');
->orWhere('note', 'LIKE', '%'.$search.'%')
->orWhere('log_meta', 'LIKE', '%'.$search.'%');
}
});

View file

@ -617,11 +617,14 @@
<div class="col-md-12">
<table
class="table table-striped snipe-table"
name="assetHistory"
name="asset-history"
id="table"
class="table table-striped snipe-table"
data-sort-order="desc"
data-show-columns="true"
data-search="true"
data-cookie="true"
data-show-refresh="true"
data-cookie-id-table="asset-history"
data-url="{{ route('api.activity.index', ['item_id' => $asset->id, 'item_type' => 'asset']) }}">
<thead>