From c14adab5c691955fff15ff448a9b88e9af665053 Mon Sep 17 00:00:00 2001 From: Nathaniel Hammond Date: Wed, 10 Jul 2024 10:32:57 +0100 Subject: [PATCH] Fixed #3570 variant field layouts showing incorrectly --- CHANGELOG.md | 3 ++- src/fieldlayoutelements/PurchasableStockField.php | 9 ++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c65a3eea8..33c294f43b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,11 @@ ## Unreleased +- Added `craft\commerce\events\PdfRenderEvent::$sourcePdf`. ([#3543](https://github.com/craftcms/commerce/issues/3543)) +- Fixed a bug where variant field layouts could show incorrectly. ([#3570](https://github.com/craftcms/commerce/issues/3570)) - Fixed a bug where payment currencies weren’t deletable. ([#3548](https://github.com/craftcms/commerce/issues/3548)) - Fixed a SQL error that could occur when saving a payment currency. ([3563](https://github.com/craftcms/commerce/issues/3563)) - Fixed a SQL error that occurred when reordering order statuses on PostgreSQL. ([#3554](https://github.com/craftcms/commerce/issues/3554)) -- Added `craft\commerce\events\PdfRenderEvent::$sourcePdf`. ([#3543](https://github.com/craftcms/commerce/issues/3543)) ## 5.0.11.1 - 2024-06-20 diff --git a/src/fieldlayoutelements/PurchasableStockField.php b/src/fieldlayoutelements/PurchasableStockField.php index 72e146268c..d9612622b1 100644 --- a/src/fieldlayoutelements/PurchasableStockField.php +++ b/src/fieldlayoutelements/PurchasableStockField.php @@ -193,11 +193,10 @@ public function inputHtml(ElementInterface $element = null, bool $static = false ]; return Html::beginTag('div') . - Cp::lightswitchHtml($storeInventoryTrackedLightswitchConfig) . - Html::beginTag('div', ['id' => $inventoryItemTrackedId, 'class' => 'hidden']) . - $inventoryLevelsTable . - Html::endTag('div') . - Html::endTag('div') . + Cp::lightswitchHtml($storeInventoryTrackedLightswitchConfig) . + Html::beginTag('div', ['id' => $inventoryItemTrackedId, 'class' => 'hidden']) . + $inventoryLevelsTable . + Html::endTag('div') . Html::endTag('div'); }