[TikiWiki-commits] [Git][tikiwiki/tiki][master] [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 <6a8ca9a8c9031_3818d15c41853@gitlab-sidekiq-low-urgency-cpu-bound-v2-5bdff4c89f-9s89s.mail>

Domeshow Emmanuel pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
b90f973b by Domeshow Emmanuel at 2026-08-24T23:16:34+03:00
[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

- - - - -


1 changed file:

- lib/wiki-plugins/wikiplugin_tracker.php


Changes:

=====================================
lib/wiki-plugins/wikiplugin_tracker.php
=====================================
@@ -1666,7 +1666,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/b90f973be7fc41826e150afe13f16598c2eb604a

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