Skip to content

Commit b74fa4f

Browse files
author
Zane
committed
Article editor: images gallery
1 parent ff24487 commit b74fa4f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎src/Service/Cms/Article.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,11 @@ public function getImages() : array
176176

177177
foreach($this->entity->getImages() as $junction) {
178178

179-
$junctionRanking = $junction->getRanking();
179+
$junctionRanking = $junction->getRanking();
180+
$imageEntity = $junction->getImage();
181+
$imageId = $imageEntity->getId();
180182

181-
$imageEntity= $junction->getImage();
182-
$idImage = $imageEntity->getId();
183-
184-
$this->arrImages[$idImage] =
183+
$this->arrImages[$imageId] =
185184
$this->factory->createImage($imageEntity)
186185
->setTempOrder($junctionRanking);
187186
}

0 commit comments

Comments
 (0)