[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [FIX] tracker rules: For checkboxes the `:last` input with the specified...

"Sammy Ndabo \(@ndabosam084\) via TikiWiki-cvs" <[email protected]> Fri, 10 Jul 2026 14:03:38 +0000
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a50fbba3b2c1_3819bd60588cc@gitlab-sidekiq-low-urgency-cpu-bound-v2-6d7dcb8644-5zx2g.mail>

Sammy Ndabo pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki


Commits:
eddbca4c by Sammy Ndabo at 2026-07-10T13:56:26+00:00
[FIX] tracker rules: For checkboxes the `:last` input with the specified...
---
* [FIX] tracker rules: For checkboxes the `:last` input with the specified...
---
* [FIX] tracker rules: For checkboxes the `:last` input with the specified `name^` attribute ("name starting with ins_xxx") was picking up the `_old` hidden input when editing an item, so move the hidden one before the real checkbox.

See merge request tikiwiki/tiki!10681

(cherry picked from commit d3eaaba631e45e1e244cb85b7b26db674dfc44b7)

See merge request tikiwiki/tiki!10683

- - - - -


1 changed file:

- templates/trackerinput/checkbox.tpl


Changes:

=====================================
templates/trackerinput/checkbox.tpl
=====================================
@@ -1,6 +1,7 @@
 <div class="form-check form-check-inline">
-    <input type="checkbox" class="form-check-input" aria-label="{tr}Select{/tr}" name="{$field.ins_id}"{if $field.value eq 'y' or $field.value eq 'on' or strtolower($field.value) eq 'yes' or $field.defaultvalue eq 'y'} checked="checked"{/if}>
     {if $field.value eq 'y' or $field.value eq 'on' or strtolower($field.value) eq 'yes' or $field.defaultvalue eq 'y'}
         <input type="hidden" name="{$field.ins_id}_old" value="1">
     {/if}
+    {* The actual checkbox needs to be last in the page for Tracker Field Rules to find it *}
+    <input type="checkbox" class="form-check-input" aria-label="{tr}Select{/tr}" name="{$field.ins_id}"{if $field.value eq 'y' or $field.value eq 'on' or strtolower($field.value) eq 'yes' or $field.defaultvalue eq 'y'} checked="checked"{/if}>
 </div>



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

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