[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [BP][FIX] File Gallery: regression in Category assigning on file upload

"luci \(@luciash\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68c1f6e2e6770_2c32caa8042798@gitlab-sidekiq-low-urgency-cpu-bound-v2-856dd689b5-5f2pm.mail>

luci pushed to branch 27.x at Tiki Wiki CMS Groupware / Tiki


Commits:
9525d1da by Boss Ibrahim Mussa Gregoire at 2025-09-10T22:02:04+00:00
[BP][FIX] File Gallery: regression in Category assigning on file upload
---
* [BP][FIX] File Gallery: regression in Category assigning on file upload
---
* [FIX] File Gallery: regression in Category assigning on file upload
---
* [FIX]Fixing Category affactation on upload to files gallery

See merge request tikiwiki/tiki!7479

See merge request tikiwiki/tiki!8357


(cherry picked from commit 0ec6d2e925065c41b5460e0cf32fb5097cdf171c)

8fd07017 [FIX] File Gallery: regression in Category assigning on file upload

Co-authored-by: Boss Ibrahim Mussa Gregoire <[email protected]>

See merge request tikiwiki/tiki!8447

- - - - -


1 changed file:

- lib/core/Services/File/Controller.php


Changes:

=====================================
lib/core/Services/File/Controller.php
=====================================
@@ -220,8 +220,11 @@ class Services_File_Controller
         $cat_desc = null;
         $cat_name = $name;
         $cat_href = "tiki-download_file.php?fileId=$fileId";
-        $_REQUEST['cat_categories'] = $categories;
-        $_REQUEST["cat_categorize"] = 'on';
+
+        if ($categories) {
+            $_REQUEST['cat_categories'] = $categories;
+            $_REQUEST["cat_categorize"] = 'on';
+        }
         include('categorize.php');
 
         $util->setTicket();



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/9525d1da6bcdc3efa6b2d2044d8ddccdf2951683

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/9525d1da6bcdc3efa6b2d2044d8ddccdf2951683
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.