Skip to content

Commit 50f3233

Browse files
committed
Compare against string
1 parent 773efd6 commit 50f3233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Controllers/CP/Collections/QueriesAuthorEntries.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ protected function queryAuthorEntries(Builder $query, Collection $collection): v
1414
{
1515
$query
1616
->where(fn ($query) => $query
17-
->whereNotIn('collection', [$collection->handle()]) // Needed for entries fieldtypes configured for multiple collections
17+
->whereNotIn('collectionHandle', [$collection->handle()]) // Needed for entries fieldtypes configured for multiple collections
1818
->orWhere(fn ($query) => $query
1919
->whereIn('blueprint', $this->blueprintsWithAuthor($collection->entryBlueprints()))
2020
->whereIn('author', [User::current()->id()])

0 commit comments

Comments
 (0)