We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2eb795 commit e07e762Copy full SHA for e07e762
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