Skip to content

Commit

Permalink
Solved swagger response of product attribute option is_default
Browse files Browse the repository at this point in the history
  • Loading branch information
hiren authored and mage2pratik committed Feb 12, 2019
1 parent 2fcf9b7 commit 11cafc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ private function addDefaultCountryToOptions(array &$options)

foreach ($options as $key => $option) {
if (isset($defaultCountry[$option['value']])) {
$options[$key]['is_default'] = $defaultCountry[$option['value']];
$options[$key]['is_default'] = !empty($defaultCountry[$option['value']]);
}
}
}
Expand Down

0 comments on commit 11cafc3

Please sign in to comment.