[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] tracker rules: For checkboxes the `:last` input with the specified...
"Sammy Ndabo \(@ndabosam084\) via TikiWiki-cvs" <[email protected]> Fri, 10 Jul 2026 13:25:03 +0000
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6a50f2afb38ff_3819bc98511c3@gitlab-sidekiq-low-urgency-cpu-bound-v2-685dd4b5f6-njmnw.mail> |
Sammy Ndabo pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
d3eaaba6 by Sammy Ndabo at 2026-07-10T13:06:00+00:00
[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
- - - - -
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/d3eaaba631e45e1e244cb85b7b26db674dfc44b7
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/d3eaaba631e45e1e244cb85b7b26db674dfc44b7
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