Skip to content

Commit fb60985

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 8f57592 + ebd79f2 commit fb60985

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

app/Http/Controllers/Api/AssetsController.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,9 @@ public function index(Request $request, $action = null, $upcoming_status = null)
118118
];
119119

120120
$all_custom_fields = CustomField::all(); //used as a 'cache' of custom fields throughout this page load
121+
121122
foreach ($all_custom_fields as $field) {
122-
// custom fields are prefixed with "custom_fields.".
123-
// We'll add them to the allowed columns so they can be searched.
124-
$allowed_columns[] = 'custom_fields.' . $field->db_column_name();
123+
$allowed_columns[] = $field->db_column_name();
125124
}
126125

127126
$filter = [];

app/Presenters/AssetPresenter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public static function dataTableLayout()
328328
// name can break the listings page. - snipe
329329
foreach ($fields as $field) {
330330
$layout[] = [
331-
'field' => 'custom_fields.'.$field->db_column,
331+
'field' => $field->db_column,
332332
'searchable' => true,
333333
'sortable' => true,
334334
'switchable' => true,

0 commit comments

Comments
 (0)