Skip to content

Commit cf1370f

Browse files
committed
ACP2E-1918: Cannot create more than 1 Credit Memo for $0 Order
1 parent 4534e2d commit cf1370f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Checkout/Test/Fixture/SetPaymentMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function apply(array $data = []): ?DataObject
7272
*/
7373
private function prepareData(array $data): array
7474
{
75-
if (is_string($data['method'])) {
75+
if (isset($data['method']) && is_string($data['method'])) {
7676
$data['method'] = ['method' => $data['method']];
7777
}
7878

0 commit comments

Comments
 (0)