Skip to content

Commit

Permalink
Fixed #2708
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Apr 9, 2018
1 parent 95f5eb8 commit 38d7b6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- Fixed an error that could occur when disabling a site on a Single section. ([#2695](https://github.com/craftcms/cms/issues/2695))
- Fixed an error that could occur on requests without a content type on the response. ([#2704](https://github.com/craftcms/cms/issues/2704))
- Fixed a bug where the `includeSubfolders` asset query param wasn’t including results in the parent folder. ([#2706](https://github.com/craftcms/cms/issues/2706))
- Fixed an error that could occur when querying for users eager-loaded with their photos, if any of the resulting users didn’t have a photo. ([#2708](https://github.com/craftcms/cms/issues/2708))

## 3.0.1 - 2018-04-04

Expand Down
1 change: 1 addition & 0 deletions src/elements/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ public static function eagerLoadingMap(array $sourceElements, string $handle)
->select(['id as source', 'photoId as target'])
->from(['{{%users}}'])
->where(['id' => $sourceElementIds])
->andWhere(['not', ['photoId' => null]])
->all();

return [
Expand Down

0 comments on commit 38d7b6c

Please sign in to comment.