Skip to content

Commit fff3472

Browse files
authored
Update MembersTrackingDataTable.php (#715)
Updated the DataTables search to no longer use a multi-dimensional array which errors out. This change fixes the search for Corporation\Intel and therefore fixes eveseat/seat#929
1 parent 38ed2b2 commit fff3472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/DataTables/Corporation/Intel/MembersTrackingDataTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function ajax(): JsonResponse
104104
});
105105
}
106106

107-
$query->whereIn('character_id', $characters->toArray())
107+
$query->whereIn('character_id', $characters->flatten(1))
108108
->orWhereHas('character', function ($query) use ($keyword) {
109109
$query->where('name', 'like', "%{$keyword}%");
110110
});

0 commit comments

Comments
 (0)