Skip to content

Commit

Permalink
fix collections table editor not showing the correct results
Browse files Browse the repository at this point in the history
  • Loading branch information
MuchQuak committed Dec 5, 2024
1 parent bf1d17b commit 451539f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@
$query = DB::table('omoccurrences as o')
->join('omcollections as c', 'c.collid', '=', 'o.collid')
->where('c.collid', '=', $request->query('collid'))
// ->where('o.family', '=', 'Apiaceae')
->select('*');

$sortables = [
Expand Down Expand Up @@ -170,7 +169,7 @@
});
} else if($request->query('hasImages') === 'without_images') {
$query->whereNotIn('o.occid', function(Builder $query) {
$query->select('i.occid')->from('images as i')->groupBy('i.occid');
$query->select('i.occid')->from('images as i')->whereNotNull('i.occid')->groupBy('i.occid');
});
}
}
Expand Down

0 comments on commit 451539f

Please sign in to comment.