6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/8/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#3218] hourminutesecond form incorrectly shows '00' selected for blank dates
*
Your Email Address
*
Spam protection
Enter the letters below:
.___..__ . . ..__ _/ | \| |_/ [__) ./__.|__/|___| \|
Comment
> If one simply creates an hourminutesecond input, but does not assign > variables one would expect the inputs to appear with 2 drop downs, > one with 'hh' selected, and the other 'mm'. > > > > This isn't the case - '00' shows in both dropdowns. > > > > Around line 362 of UI/VarRenderer/html.php we see this: > > > > $html = sprintf('<select name="%s[hour]" > id="%s[hour]"%s>%s</select>', > > $varname, > > $varname, > > $this->_selectOptions($hours, sprintf('%02d', > $time['hour'])), > > $this->_getActionScripts($form, $var)); > > > > The sprintf of $time['hour'] is causing a blank value of hour to be > converted to '00' and hence 'hh' (represented in the dropdown by > blank) is never shown). > > > > Minutes are affected in the same way.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers