Skip to content

Commit

Permalink
how does one forget the same thing twice
Browse files Browse the repository at this point in the history
  • Loading branch information
SpeedyD authored Apr 3, 2024
1 parent ba3c975 commit 63128c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Http/Controllers/Admin/Data/ItemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,17 @@ public function getItemIndex(Request $request) {
if (isset($data['name'])) {
$query->where('name', 'LIKE', '%'.$data['name'].'%');
}
if (isset($data['artist']) && $data['artist'] != 'none') {
$query->where('artist_id', $data['artist']);
}
if (isset($data['visibility']) && $data['visibility'] != 'none') {
if ($data['visibility'] == 'visibleOnly') {
$query->where('is_released', '=', 1);
} else {
$query->where('is_released', '=', 0);
}
}

if (isset($data['sort'])) {
switch ($data['sort']) {
case 'alpha':
Expand Down

0 comments on commit 63128c0

Please sign in to comment.