On Tue, Jun 26, 2007 at 05:41:52PM +0200, Andreas V?gele wrote:
> I haven't figured out how to set a default value for UpdateTimeWorked
> though.  The field won't be pre-populated if you add
> '$UpdateTimeWorked => "5"' to the %ARGS section at the bottom of
> Update.html.

>From the  O'reilly  book on Mason:-
    Any assignment of defaults in the <%args> block is not visible
    in %ARGS
    
What I'd do to set the default (untested) would be to add something
like:-

<%perl>
  if (not defined $ARGS{UpdateTimeWorked} ) {
        $ARGS{UpdateTimeWorked}=5;
  }
</%perl>
   
at the top of the file.
   
TTFN
-- 
Roger.                          Home| http://www.sandman.uklinux.net/
Master of Peng Shui.      (Ancient oriental art of Penguin Arranging)
Work|Independent Sys Consultant | http://www.computer-surgery.co.uk/
 New key Fpr: 72AF 0ACC 9A53 E59F B1B6  DC14 1983 A13E 5C3D 3CEB 
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to