Skip to content

Commit 6706aa5

Browse files
author
Yurii Hryhoriev
committed
MAGETWO-44267: [Product Video] Positions of product videos per storeview does no work
1 parent 58088a1 commit 6706aa5

File tree

1 file changed

+5
-1
lines changed
  • app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Gallery

1 file changed

+5
-1
lines changed

app/code/Magento/Catalog/Block/Adminhtml/Product/Helper/Form/Gallery/Content.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,11 @@ public function getAddImagesButton()
123123
public function getImagesJson()
124124
{
125125
$value = $this->getElement()->getImages();
126-
if (is_array($value) && is_array($value['images']) && count($value['images'])) {
126+
if (is_array($value) &&
127+
array_key_exists('images', $value) &&
128+
is_array($value['images']) &&
129+
count($value['images'])
130+
) {
127131
$directory = $this->_filesystem->getDirectoryRead(DirectoryList::MEDIA);
128132
$images = $this->sortImagesByPosition($value['images']);
129133
foreach ($images as &$image) {

0 commit comments

Comments
 (0)