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 committed Feb 3, 2019
1 parent 911a6e6 commit 1e77ebe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,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 1e77ebe

Please sign in to comment.