Skip to content

Commit

Permalink
[TM-1603] add where clause to filter specifically by site report class (
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarLima1 authored Jan 22, 2025
1 parent d1af6af commit f320f88
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ private function getSiteReportTreeSpecies(): SupportCollection
$ids = $this->getSiteReportIds();

return TreeSpecies::whereIn('speciesable_id', $ids)
->where('speciesable_type', SiteReport::class)
->where('collection', $this->collectionType)
->where('hidden', false)
->get()
Expand Down

0 comments on commit f320f88

Please sign in to comment.