Skip to content

Commit 27ab740

Browse files
committed
Legacy can use collect() for now
1 parent 550037d commit 27ab740

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yii2-adapter/legacy/controllers/ElementsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ private function _contextMenuItems(
791791
->status(null)
792792
->orderBy(['dateUpdated' => SORT_DESC])
793793
->with(['draftCreator'])
794-
->get()
794+
->collect()
795795
->filter(fn(ElementInterface $draft) => $elementsService->canView($draft, $user))
796796
->all();
797797
} else {

0 commit comments

Comments
 (0)