Skip to content

Commit

Permalink
add-product-image-label-bug
Browse files Browse the repository at this point in the history
- fixes notice error that prevents saving product in non default store view when image label has not been defined
  • Loading branch information
markpol committed Sep 25, 2016
1 parent a3adb88 commit 1be0edf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public function execute($product, $arguments = [])
$product->setData($mediaAttrCode . '_label', $newImages[$attrData]['label']);
}

if (in_array($attrData, array_keys($existImages))) {
if (in_array($attrData, array_keys($existImages)) && isset($existImages[$attrData]['label'])) {
$product->setData($mediaAttrCode . '_label', $existImages[$attrData]['label']);
}

Expand Down

0 comments on commit 1be0edf

Please sign in to comment.