| 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/05 (7418 days ago) |
| Due | |
| Updated | 1/8/06 (7397 days ago) |
| Assigned | 12/21/05 (7415 days ago) |
| Resolved | 1/8/06 (7397 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
State ⇒ Resolved
Assigned to
State ⇒ Assigned
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Display/Input inconsistent for hourMinuteSecond variable type
Queue ⇒ Horde Framework Packages
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.