From d2c02cff0f6edf5593890f685eeda5d89d89a676 Mon Sep 17 00:00:00 2001 From: Nathaniel Hammond Date: Thu, 24 Oct 2024 09:34:17 +0100 Subject: [PATCH] Fix order edit purchasable table query --- src/controllers/OrdersController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controllers/OrdersController.php b/src/controllers/OrdersController.php index fb61553061..f0dc5d5a42 100644 --- a/src/controllers/OrdersController.php +++ b/src/controllers/OrdersController.php @@ -688,6 +688,8 @@ public function actionPurchasablesTable(): Response ->innerJoin(Table::PURCHASABLES_STORES . ' pstores', '[[purchasables.id]] = [[pstores.purchasableId]]') ->where(['elements.enabled' => true]) ->andWhere(['pstores.storeId' => $store->id]) + ->andWhere(['elements.revisionId' => null]) + ->andWhere(['elements.draftId' => null]) ->from(['purchasables' => Table::PURCHASABLES]); // Are they searching for a SKU or purchasable description?