[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Trackers: use rule parent defaults by render mode

"Jonny Bradley \(@jonnybradley\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a3baff2d3ea9_386727943517c@gitlab-sidekiq-low-urgency-cpu-bound-v2-749c764f6d-fs8nl.mail>

Jonny Bradley pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
9803bdfa by MAGENE Sem Joel at 2026-06-24T10:04:23+00:00
[FIX] Trackers: use rule parent defaults by render mode
---
* [FIX] Trackers: use rule parent defaults by render mode

See merge request tikiwiki/tiki!10091

- - - - -


2 changed files:

- lib/wiki-plugins/wikiplugin_tracker.php
- templates/tracker/replace.tpl


Changes:

=====================================
lib/wiki-plugins/wikiplugin_tracker.php
=====================================
@@ -658,8 +658,8 @@ function wikiplugin_tracker_info()
             'rulesparent' => [
                 'required' => false,
                 'name' => tra('Field rules parent selector'),
-                'description' => tra('JQuery selector for the parent object to show or hide when executing field rules.'),
-                'default' => '.tracker-field-group:first',
+                'description' => tra('JQuery selector for the parent object to show or hide when executing field rules. Leave empty to use the default selector for the tracker rendering mode.'),
+                'default' => '',
                 'advanced' => true,
                 'filter' => 'text',
             ],
@@ -859,6 +859,9 @@ function wikiplugin_tracker($data, $params)
 
         $wiki = trim($wiki);
     }
+    if (empty($params['rulesparent'])) {
+        $params['rulesparent'] = empty($tpl) && empty($wiki) ? '.tiki-form-group:first' : '.tracker-field-group:first';
+    }
 
     $fields_prefix = 'ins_';
 


=====================================
templates/tracker/replace.tpl
=====================================
@@ -331,6 +331,9 @@
                         {tr}wiki:pageName for a wiki page or tpl:tplName for a template{/tr}
                     </div>
                 </div>
+                <div class="form-text">
+                    <p>{tr _0="<code>{ldelim}DIV(class=&quot;tracker-field-group&quot;){rdelim}...{ldelim}DIV{rdelim}</code>"}When using field rules in a configured wiki template, wrap each label and field in the field rules parent selector. Example: %0{/tr}</p>
+                </div>
     {/accordion_group}
         {accordion_group title="{tr}Status{/tr}" accordion_pos=$accordion_pos}
             <div class="mb-3 mx-0">



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

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