From d06794d5dc052ef2fd93c0cc485ac48be2a760d2 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Tue, 14 Apr 2020 23:18:58 +0200 Subject: [PATCH] =?UTF-8?q?Gallery=200.8=20:=20tri=20manuel=20sans=20d?= =?UTF-8?q?=C3=A9placement=20effectu=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/gallery/gallery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index 18a89c79..526589c7 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -47,7 +47,7 @@ class gallery extends common { public static $thumbs = []; - const GALLERY_VERSION = '2.07'; + const GALLERY_VERSION = '2.08'; /** @@ -278,7 +278,7 @@ class gallery extends common { 'directory' => $this->getInput('galleryEditDirectory', helper::FILTER_STRING_SHORT, true), 'homePicture' => $homePicture, // pas de positions, on active le tri alpha - 'sort' => empty($picturesPosition) ? self::SORT_ASC : $this->getInput('galleryEditSort'), + 'sort' => (empty($picturesPosition) && $this->getInput('galleryEditSort') === self::SORT_HAND) ? self::SORT_ASC : $this->getInput('galleryEditSort'), 'position' => $this->getData(['module', $this->getUrl(0), $galleryId,'config','position']) === '' ? count($this->getData(['module',$this->getUrl(0)]))-1 : $this->getData(['module', $this->getUrl(0), $galleryId,'config','position']) ], 'legend' => $legends,