[TikiWiki-commits] [Git][tikiwiki/tiki][29.x] [FIX] Date Time field: Preserve DateTime default in pretty tracker templates

"Domeshow Emmanuel \(@Domeshow\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a8d5d327aaf1_3816e969027168@gitlab-sidekiq-low-urgency-cpu-bound-v2-7f4b5767d6-shtl6.mail>

Domeshow Emmanuel pushed to branch 29.x at Tiki Wiki CMS Groupware / Tiki


Commits:
eb89a158 by Domeshow Emmanuel at 2026-08-25T12:09:02+03:00
[FIX] Date Time field: Preserve DateTime default in pretty tracker templates
---
* [FIX] Date Time field: Preserve DateTime default in pretty tracker templates
---
* [FIX] Date Time field: Preserve DateTime default in pretty tracker templates
---
* [FIX] Date Time field: Preserve DateTime default in pretty tracker templates

See merge request tikiwiki/tiki!11039


(cherry picked from commit b90f973be7fc41826e150afe13f16598c2eb604a)

5e9ac7d1 [FIX] Date Time field: Preserve DateTime default in pretty tracker templates

Co-authored-by: Domeshow Emmanuel <[email protected]>

See merge request tikiwiki/tiki!11051


(cherry picked from commit 1823c42989181ac3232eb2a31040b674e865d666)

79369e02 [FIX] Date Time field: Preserve DateTime default in pretty tracker templates

Co-authored-by: Domeshow Emmanuel <[email protected]>

See merge request tikiwiki/tiki!11053

- - - - -


1 changed file:

- lib/wiki-plugins/wikiplugin_tracker.php


Changes:

=====================================
lib/wiki-plugins/wikiplugin_tracker.php
=====================================
@@ -1769,7 +1769,7 @@ function wikiplugin_tracker($data, $params)
                 } else {
                     // setting default value prevent dropdown default value working
                     $options = $flds['data'][$i]['options_array'];
-                    if (! in_array($flds['data'][$i]['type'], ['d', 'D', 'R', 'M']) || count($options) === count(array_unique($options))) {
+                    if ($flds['data'][$i]['type'] != 'f' && (! in_array($flds['data'][$i]['type'], ['d', 'D', 'R', 'M']) || count($options) === count(array_unique($options)))) {
                         $flds['data'][$i]['value'] = ''; // initialize fields with blank values
                     }
                 }



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

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