Skip to content

Commit 22d97b5

Browse files
authored
ENGCOM-4114: Solved swagger response of product attribute option is_default #20913
2 parents ceed8b6 + 000bd83 commit 22d97b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Directory/Model/ResourceModel/Country/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ private function addDefaultCountryToOptions(array &$options)
327327

328328
foreach ($options as $key => $option) {
329329
if (isset($defaultCountry[$option['value']])) {
330-
$options[$key]['is_default'] = $defaultCountry[$option['value']];
330+
$options[$key]['is_default'] = !empty($defaultCountry[$option['value']]);
331331
}
332332
}
333333
}

0 commit comments

Comments
 (0)