[TikiWiki-commits] [Git][tikiwiki/tiki][master] [ENH] files: Add archiveId filter to exclude archived files

"Sammy Ndabo \(@ndabosam084\) via TikiWiki-cvs" <[email protected]> Fri, 10 Jul 2026 22:21:39 +0000
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a517073447e6_3819bd9c91342@gitlab-sidekiq-low-urgency-cpu-bound-v2-5b7879cf46-t2hb2.mail>

Sammy Ndabo pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
8eee83b8 by Sammy Ndabo at 2026-07-10T22:04:06+00:00
[ENH] files: Add archiveId filter  to exclude archived files
---
* [ENH] files: Add archiveId filter for  to exclude archived files

See merge request tikiwiki/tiki!10686

- - - - -


1 changed file:

- lib/Filegals/FileGalLib.php


Changes:

=====================================
lib/Filegals/FileGalLib.php
=====================================
@@ -2553,7 +2553,7 @@ class FileGalLib extends TikiLib
         $query = "select tf.*, tfg.galleryId as validGalleryId
                 from `tiki_files` tf
                 left join `tiki_file_galleries` tfg on (tf.`galleryId`=tfg.`galleryId`)
-                where tf.`filename`=? ORDER BY tf.created DESC LIMIT 1";
+                where tf.`filename`=? AND tf.`archiveId` = 0 ORDER BY tf.created DESC LIMIT 1";
         $result = $this->query($query, [$filename]);
         $file = $result->fetchRow();
         $this->verifyFileGalleryIntegrity($file);



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/8eee83b8f5808813a24e94091d812ac3a03222ba

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/8eee83b8f5808813a24e94091d812ac3a03222ba
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs