We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71d9072 commit 2a9dcb2Copy full SHA for 2a9dcb2
app/code/core/Mage/Catalog/Model/Product/Attribute/Backend/Media.php
@@ -242,6 +242,18 @@ public function afterSave($object)
242
$image['value_id'] = $this->_getResource()->insertGallery($data);
243
}
244
245
+ if ($storeId === 0) {
246
+ $image["label_use_default"] = false;
247
+ $image["position_use_default"] = false;
248
+ } else {
249
+ if (!isset($image["label_use_default"])) {
250
+ $image["label_use_default"] = null;
251
+ }
252
+ if (!isset($image["position_use_default"])) {
253
+ $image["position_use_default"] = null;
254
255
256
+
257
$this->_getResource()->deleteGalleryValueInStore($image['value_id'], $object->getStoreId());
258
259
// Add per store labels, position, disabled
0 commit comments