Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Sental/d5f81a8d5e66f0ca9383968749074e41 to your computer and use it in GitHub Desktop.
Save Sental/d5f81a8d5e66f0ca9383968749074e41 to your computer and use it in GitHub Desktop.
Magento 2 - Issue #32177 Gist
From d40affed1deffa9c10f0f308ae26e5e0e155b57a Mon Sep 17 00:00:00 2001
From: Mark Rees <mark.rees@birdfood.co.uk>
Date: Tue, 9 Mar 2021 16:42:24 +0000
Subject: [PATCH] prefix array element index issue bugfix
---
Block/Checkout/LayoutProcessor.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Block/Checkout/LayoutProcessor.php b/Block/Checkout/LayoutProcessor.php
index 16450ec..08c3022 100644
--- a/Block/Checkout/LayoutProcessor.php
+++ b/Block/Checkout/LayoutProcessor.php
@@ -134,7 +134,7 @@ class LayoutProcessor implements LayoutProcessorInterface
foreach ($options as $key => $value) {
$elements[$code]['options'][] = [
- 'value' => $key,
+ 'value' => $value,
'label' => $value,
];
}
--
2.11.0
{
...
"extra": {
"magento-force": "override",
"composer-exit-on-patch-failure": true,
"patches": {
"magento/module-checkout": {
"prefix array element id fix": "patches/0001-prefix-array-element-index-issue-bugfix.patch"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment