Skip to content

Commit e80e56e

Browse files
committed
Merge remote-tracking branch 'magento-mpi/MC-22006' into MPI-PR-2019-10-25
2 parents 53f8717 + 82a1858 commit e80e56e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

app/code/Magento/Paypal/Model/SmartButtonConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function getConfig(string $page): array
8383
'allowedFunding' => $this->getAllowedFunding($page),
8484
'disallowedFunding' => $this->getDisallowedFunding(),
8585
'styles' => $this->getButtonStyles($page),
86-
'isVisibleOnProductPage' => $this->config->getValue('visible_on_product'),
86+
'isVisibleOnProductPage' => (bool)$this->config->getValue('visible_on_product'),
8787
'isGuestCheckoutAllowed' => $isGuestCheckoutAllowed
8888
];
8989
}

app/code/Magento/Paypal/Test/Unit/Model/_files/expected_config.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
'label' => 'installment',
3333
'installmentperiod' => 0
3434
],
35-
'isVisibleOnProductPage' => 0,
35+
'isVisibleOnProductPage' => false,
3636
'isGuestCheckoutAllowed' => true
3737
]
3838
],
@@ -62,7 +62,7 @@
6262
'label' => 'installment',
6363
'installmentperiod' => 0
6464
],
65-
'isVisibleOnProductPage' => 0,
65+
'isVisibleOnProductPage' => false,
6666
'isGuestCheckoutAllowed' => true
6767
]
6868
],
@@ -91,7 +91,7 @@
9191
'shape' => 'rect',
9292
'label' => 'paypal'
9393
],
94-
'isVisibleOnProductPage' => 0,
94+
'isVisibleOnProductPage' => false,
9595
'isGuestCheckoutAllowed' => true
9696
]
9797
],
@@ -120,7 +120,7 @@
120120
'shape' => 'rect',
121121
'label' => 'paypal'
122122
],
123-
'isVisibleOnProductPage' => 0,
123+
'isVisibleOnProductPage' => false,
124124
'isGuestCheckoutAllowed' => true
125125
]
126126
],
@@ -149,7 +149,7 @@
149149
'shape' => 'rect',
150150
'label' => 'paypal',
151151
],
152-
'isVisibleOnProductPage' => 0,
152+
'isVisibleOnProductPage' => false,
153153
'isGuestCheckoutAllowed' => true
154154
]
155155
]

0 commit comments

Comments
 (0)