Position des images dans updates : correction

This commit is contained in:
Fred Tempez 2020-05-02 21:46:17 +02:00
parent d3e3769b62
commit 4e7d005924

View File

@ -1197,9 +1197,9 @@ class common {
$this->setdata(['module',$parent,$galleryKey,'config','position',$i++]);
}
// Positions des images, tri manuel
if ( $this->getdata(['module',$parent,$galleryKey,'position']) === NULL) {
if ( $this->getdata(['module',$parent,$galleryKey,'positions']) === NULL) {
$c = count($this->getdata(['module',$parent,$galleryKey,'legend']));
$this->setdata(['module',$parent,$galleryKey,'position', range(0,$c-1) ]);
$this->setdata(['module',$parent,$galleryKey,'positions', range(0,$c-1) ]);
}
// Image de couverture
if ( $this->getdata(['module',$parent,$galleryKey,'config','homePicture']) === NULL) {