Tri des galeries modifié après édition d'une galerie

This commit is contained in:
Fred Tempez 2020-04-12 10:09:38 +02:00
parent 564089b598
commit 2d010b36f2
1 changed files with 1 additions and 1 deletions

View File

@ -243,7 +243,7 @@ class gallery extends common {
'directory' => $this->getInput('galleryEditDirectory', helper::FILTER_STRING_SHORT, true),
'homePicture' => $homePicture[0],
'sort' => $this->getInput('galleryEditSort'),
'position' => count($this->getData(['module',$this->getUrl(0)]))
'position' => empty($this->getData(['module', $this->getUrl(0), $galleryId,'config','position'])) ? count($this->getData(['module',$this->getUrl(0)])) : $this->getData(['module', $this->getUrl(0), $galleryId,'config','position'])
],
'legend' => $legends,
'position' => empty($picturesPosition) ? $this->getData(['module', $this->getUrl(0), $this->getUrl(2),'position']) : $picturesPosition