<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Display/Input inconsistent for hourMinuteSecond variable type</title> 
  <pubDate>Fri, 10 Apr 2026 19:46:52 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/3165</link> 
  <atom:link rel="self" type="application/rss+xml" title="Display/Input inconsistent for hourMinuteSecond variable type" href="https://bugs.horde.org/ticket/3165/rss" /> 
  <description>Display/Input inconsistent for hourMinuteSecond variable type</description> 
 
   
   
  <item> 
   <title>Am trying to use an hourMinuteSecond variable for input and </title> 
   <description>Am trying to use an hourMinuteSecond variable for input and display only, by doing something like this in a form object:



    $this-&gt;addVariable(_(&quot;Start Time&quot;), &quot;start_time&quot;, &#039;hourMinuteSecond&#039;, false);



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



      $this-&gt;_vars-&gt;set(&#039;start_time&#039;, array(&quot;hour&quot; =&gt; $hour, &quot;minute&quot; =&gt; $minute, &quot;second&quot; =&gt; $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-&gt;_vars-&gt;set(&quot;start_time[hour]&quot;, $hour);

      $this-&gt;_vars-&gt;set(&quot;start_time[minute]&quot;, $minute);

      $this-&gt;_vars-&gt;set(&quot;start_time[second]&quot;, $second);



With the same result.



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



      $this-&gt;_vars-&gt;set($timevar, &quot;$hour:$minute:second&quot;);



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.</description> 
   <pubDate>Sun, 18 Dec 2005 09:47:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3165#t14924</link> 
  </item> 
   
  <item> 
   <title>Analysis looks correct.</title> 
   <description>Analysis looks correct.</description> 
   <pubDate>Wed, 21 Dec 2005 17:10:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3165#t15010</link> 
  </item> 
   
  <item> 
   <title>Fixed for HEAD and FRAMEWORK_3.</title> 
   <description>Fixed for HEAD and FRAMEWORK_3.</description> 
   <pubDate>Sun, 08 Jan 2006 01:49:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3165#t15362</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
