[rt-users] how to pre-fill fields?

Mathieu Longtin mathieu at closetwork.org
Mon Oct 18 09:18:08 EDT 2010


My bad, all access to ARGSRef need to be like this:

   $ARGSRef->{'id'}
   $ARGSRef->{'Subject'}

With the ->.

--
Mathieu Longtin
1-514-803-8977


On Sun, Oct 17, 2010 at 8:48 PM, Jason Edgar <superjuke at gmail.com> wrote:

> Thanks Mathieu: I got it. An extra $ was needed before ARGSRef from line 3.
> I have no idea what it is for, I followed other examples from the Internet.
> Also the description field is called 'content'. Thanks again.
>
>
> On Sun, 17 Oct 2010 11:35:08 -0400, Mathieu Longtin wrote:
> > <%INIT>
> > my $ARGSRef = $ARGS{'ARGSRef'};
> > if ( not $ARGSRef{'id'} ) { # Check if the ticket is really empty
> > before doing anything   $ARGSRef{'Subject'} ||= 'Default subject';
> > $ARGSRef{'Requestor'} ||= 'mydefault at requestor.com'; } </%INIT>
> > <%ARGS> </%ARGS>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20101018/c1e2ee7a/attachment.htm>


More information about the rt-users mailing list