6.0.0-beta1
7/17/25

[#3165] Display/Input inconsistent for hourMinuteSecond variable type
Summary Display/Input inconsistent for hourMinuteSecond variable type
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Resolved
Priority 2. Medium
Owners Horde Developers (at)
Requester robin (at) rainton (dot) com
Created 12/18/2005 (7151 days ago)
Due
Updated 01/08/2006 (7130 days ago)
Assigned 12/21/2005 (7148 days ago)
Resolved 01/08/2006 (7130 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/08/2006 01:49:24 AM Chuck Hagenbuch Comment #3
State ⇒ Resolved
Reply to this comment
Fixed for HEAD and FRAMEWORK_3.
12/21/2005 05:10:00 PM Chuck Hagenbuch Comment #2
Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
Reply to this comment
Analysis looks correct.
12/18/2005 09:47:49 AM robin (at) rainton (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Display/Input inconsistent for hourMinuteSecond variable type
Queue ⇒ Horde Framework Packages
Reply to this comment
Am trying to use an hourMinuteSecond variable for input and display 
only, by doing something like this in a form object:



     $this->addVariable(_("Start Time"), "start_time", 
'hourMinuteSecond', false);



In order to put a value in there for display have tried these options:



       $this->_vars->set('start_time', array("hour" => $hour, "minute" 
=> $minute, "second" => $second));



Which works when the form is active (input) but not inactive (display 
only). In display only, the value is not shown (just a blank space 
appears).



Have also tried this:



       $this->_vars->set("start_time[hour]", $hour);

       $this->_vars->set("start_time[minute]", $minute);

       $this->_vars->set("start_time[second]", $second);



With the same result.



The only way to get something to appear in display only (inactive 
form) is do to this:



       $this->_vars->set($timevar, "$hour:$minute:second");



But then the value is not shown when the form is active for input from 
the user.



I believe the last option I show is incorrect and the display of the 
first two is broken because there should be a custom 
_renderVarDisplay_hourMinuteSecond functon.

Saved Queries