Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:craftcms/commerce into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
nfourtythree committed Oct 17, 2023
2 parents dcf2dbb + d4d4dc7 commit 8b07daf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- Fixed a bug where the delete button would be shown for users that do not have permission to delete on the Product edit page. ([#3285](https://github.com/craftcms/commerce/issues/3285))
- Fixed a bug where deleted shipping categories were still available for selection. ([#3272](https://github.com/craftcms/commerce/issues/3272))
- Fixed an error that could occur when rendering a PDF. ([#2633](https://github.com/craftcms/commerce/issues/2633))
- Fixed a bug where duplicate inactive users could be created when using the `commerce/upgrade` command. ([#3286](https://github.com/craftcms/commerce/issues/3286))

## 4.3.0 - 2023-09-13

Expand Down
2 changes: 2 additions & 0 deletions src/console/controllers/UpgradeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,9 @@ public function _migrateCustomers(): void
->leftJoin(['u' => $usersTable], 'o.email = u.email')
->where(['u.email' => null])
->andWhere(['not', ['o.email' => null]])
->groupBy(['[[o.email]]'])
->column();
$guestEmails = array_filter($guestEmails);
$this->stdoutlast(' Done. Found ' . count($guestEmails) . ' guest emails.', Console::FG_GREEN);

// We know we have to make a user for every guest email address
Expand Down

0 comments on commit 8b07daf

Please sign in to comment.