[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Permissions Admin: Exclude treetable subHeader rows from listfilter...

"luci \(@luciash\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69fc639ba0262_38190168681b7@gitlab-sidekiq-low-urgency-cpu-bound-v2-74cfb7f9d4-kntpr.mail>

luci pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
d87d9d51 by Aksanti Bahiga at 2026-05-07T09:42:53+00:00
[FIX] Permissions Admin: Exclude treetable subHeader rows from listfilter (keep group labels always visible when filtering by perm name)
---
* [FIX] Add filterExclude parameter to TreeTable and update object permissions template

See merge request tikiwiki/tiki!10048

- - - - -


2 changed files:

- lib/smarty_tiki/FunctionHandler/ListFilter.php
- lib/smarty_tiki/FunctionHandler/TreeTable.php


Changes:

=====================================
lib/smarty_tiki/FunctionHandler/ListFilter.php
=====================================
@@ -137,6 +137,7 @@ $('#$id').on('keyup', function() {
             \$('{$exclude}[data-tt-parent-id=' + \$(this).data('tt-id') + ']').hide();                            // but need hiding if the parent is 'empty'
         } else {
             \$(this).removeClass('collapsed').addClass('expanded');
+            \$('{$exclude}[data-tt-parent-id=' + \$(this).data('tt-id') + ']').show();
         }
     });
 ";


=====================================
lib/smarty_tiki/FunctionHandler/TreeTable.php
=====================================
@@ -191,7 +191,7 @@ class TreeTable extends Base
                     'id' => $id . '_filter',
                     'selectors' => "#$id tbody tr",
                     'parentSelector' => "#$id .collapsed:not(\".leaf\"), #$id .expanded:not(\".leaf\")",
-                    'exclude' => ""
+                    'exclude' => "#$id .subHeader"
                 ],
                 $template
             );



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

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