Skip to content

Commit

Permalink
Fix order edit purchasable table query
Browse files Browse the repository at this point in the history
  • Loading branch information
nfourtythree committed Oct 24, 2024
1 parent 068eb35 commit d2c02cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controllers/OrdersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit d2c02cf

Please sign in to comment.