Skip to content

Commit

Permalink
Fixed #3570 variant field layouts showing incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
nfourtythree committed Jul 10, 2024
1 parent be1712d commit c14adab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 4 additions & 5 deletions src/fieldlayoutelements/PurchasableStockField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit c14adab

Please sign in to comment.