We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6fceb4 commit 05156f2Copy full SHA for 05156f2
1 file changed
src/Fieldtypes/Entries.php
@@ -179,7 +179,11 @@ protected function getFirstCollectionFromRequest($request)
179
$collections = $this->getConfiguredCollections();
180
}
181
182
- return Collection::findByHandle(Arr::first($collections));
+ $collection = Collection::findByHandle($collectionHandle = Arr::first($collections));
183
+
184
+ throw_if(! $collection, new CollectionNotFoundException($collectionHandle));
185
186
+ return $collection;
187
188
189
public function getSortColumn($request)
0 commit comments