[TikiWiki-commits] [Git][tikiwiki/tiki][28.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 | <68a8360d9d23_2cd6d9456755@gitlab-sidekiq-low-urgency-cpu-bound-v2-5f94765dd4-fmb5g.mail> |
luci pushed to branch 28.x at Tiki Wiki CMS Groupware / Tiki
Commits:
0ec6d2e9 by Boss Ibrahim Mussa Gregoire at 2025-08-22T09:12:30+00:00
[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
- - - - -
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/0ec6d2e925065c41b5460e0cf32fb5097cdf171c
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/0ec6d2e925065c41b5460e0cf32fb5097cdf171c
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