[rt-devel] Re: our expirience with RT 2.0.8

Arthur de Jong arthur at West.NL
Mon Nov 19 11:40:55 EST 2001


oops, wrong attachment, that was a working version, this one should be
cleaner.

-- arthur de jong - arthur at west.nl - west consulting b.v. --
-------------- next part --------------
<FORM ACTION="<% $RT::WebPath%>/Ticket/Create.html"><input type=submit value="New ticket in">&nbsp;<& /Elements/SelectNewTicketQueue, Default => $Default &></FORM>
<%INIT>
  # 20011119 Arthur/West: try to find some sensible default queue
  my $Default = undef;
  if (defined $session{'tickets'}) {
    # probably far from optimal code but stolen from Tabs
    # if there is a search use queue of first ticket
    my $items = $session{'tickets'}->ItemsArrayRef();
    if ($items->[0] && $items->[0]->QueueObj) {
      $Default = $items->[0]->QueueObj->Id;
    }
  }
</%INIT>


More information about the Rt-devel mailing list