We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a53347e + 91b72e7 commit ba95eddCopy full SHA for ba95edd
app/code/Magento/Braintree/Model/Adminhtml/System/Config/CountryCreditCard.php
@@ -66,6 +66,13 @@ public function __construct(
66
public function beforeSave()
67
{
68
$value = $this->getValue();
69
+ if (!is_array($value)) {
70
+ try {
71
+ $value = $this->serializer->unserialize($value);
72
+ } catch (\InvalidArgumentException $e) {
73
+ $value = [];
74
+ }
75
76
$result = [];
77
foreach ($value as $data) {
78
if (empty($data['country_id']) || empty($data['cc_types'])) {
0 commit comments