[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX][UI] User tasks: The tasks in trash do not appear if trash is the only one checked

Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <689251ca4010e_2c131d62425b@gitlab-sidekiq-low-urgency-cpu-bound-v2-6b9b65f69d-tchmg.mail>

Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
f7178103 by christer77 at 2025-08-05T18:40:01+00:00
[FIX][UI] User tasks: The tasks in trash do not appear if trash is the only one checked
---
* [FIX][UI] User tasks: The tasks in trash do not appear if trash is the only one checked

See merge request tikiwiki/tiki!8099

- - - - -


1 changed file:

- lib/tasks/tasklib.php


Changes:

=====================================
lib/tasks/tasklib.php
=====================================
@@ -383,7 +383,13 @@ class TaskLib extends TikiLib
                 $values[] = "%" . $find . "%";
                 $values[] = "%" . $find . "%";
             }
-            if ($show_trash == false) {
+            if ($show_trash) {
+                $query .= " OR ";
+                $query .= "( `t_history`.`deleted` IS NOT NULL AND  `t_head`.`last_version` = `t_history`.`task_version` AND `t_head`.`taskId` = `t_history`.`belongs_to` ";
+                $query .= "AND `t_head`.`user` = ? AND `t_head`.`creator` = ? ) ";
+                $values[] = $user;
+                $values[] = $user;
+            } else {
                 $query .= " AND ";
                 $query .= "( `t_history`.`deleted` IS NULL) ";
             }



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

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/f7178103f2d1bff8131f06f3b63750b89eb41a87
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.