[TikiWiki-commits] [Git][tikiwiki/tiki][27.x] [BP][FIX] Trackers: use rule parent defaults by render mode

"Jonny Bradley \(@jonnybradley\) via TikiWiki-cvs" <[email protected]> Sat, 18 Jul 2026 10:16:21 +0000
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a5b5275110a7_381185f6455862@gitlab-sidekiq-low-urgency-cpu-bound-v2-76655d7f68-t2jsm.mail>

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


Commits:
a1abffd4 by Jonny Bradley at 2026-07-18T10:16:18+00:00
[BP][FIX] Trackers: use rule parent defaults by render mode

Blocking upgrading avan.tech to 27.x, tested by @marclaporte (and others)

---
* [FIX] Trackers: use rule parent defaults by render mode
---
* [FIX] Trackers: use rule parent defaults by render mode

See merge request tikiwiki/tiki!10091


(cherry picked from commit 9803bdfabc13c3716196bc7180a8b42d02e27e1b)

c8968da5 [FIX] Trackers: use rule parent defaults by render mode

Co-authored-by: MAGENE Sem Joel <[email protected]>

See merge request tikiwiki/tiki!10753


(cherry picked from commit 53bc690b296d6c938c9b94f88abf9aa6914714c6)

7bbb0104 [FIX] Trackers: use rule parent defaults by render mode

Co-authored-by: Jonny Bradley <[email protected]>
- - - - -


2 changed files:

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


Changes:

=====================================
lib/wiki-plugins/wikiplugin_tracker.php
=====================================
@@ -736,8 +736,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',
             ],
@@ -947,6 +947,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';
+    }
 
     if (! isset($params['formtag'])) {
         $params['formtag'] = 'y';


=====================================
templates/tracker/replace.tpl
=====================================
@@ -263,6 +263,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}"}
             <div class="mb-3 row mx-0">



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

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