From d4d4dc79d0fc8884b158a2a867a5e458e273aebc Mon Sep 17 00:00:00 2001 From: Nathaniel Hammond Date: Mon, 16 Oct 2023 13:35:38 +0100 Subject: [PATCH] Fixed #3302 anonymous guest carts being linked to single user --- src/console/controllers/UpgradeController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/console/controllers/UpgradeController.php b/src/console/controllers/UpgradeController.php index ff274714cc..f9b9d20348 100644 --- a/src/console/controllers/UpgradeController.php +++ b/src/console/controllers/UpgradeController.php @@ -1181,6 +1181,7 @@ public function _migrateCustomers(): void ->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