Take & Open

I tried adding a new subrouting to RT/Ticket.pm. We use Take, then
Open very often, and I thought it would be nice to have a quick action
for it. This is the code:

sub TakeAndOpen {
my $self = shift;
my $ret = $self->Take();
$ret .= $self->Open();
return($ret);
}

Why isn’t this working when I try to go to
Ticket.html?id=42&Action=TakeAndOpen ?
/Ian D
ian@assv.net

I tried adding a new subrouting to RT/Ticket.pm. We use Take, then
Open very often, and I thought it would be nice to have a quick action
for it. This is the code:

sub TakeAndOpen {
my $self = shift;
my $ret = $self->Take();
$ret .= $self->Open();
return($ret);
}

Why isn’t this working when I try to go to
Ticket.html?id=42&Action=TakeAndOpen ?

Why don’t you just copy WebRT/html/Ticket/Elements/Tabs to
local/WebRT/html/Ticket/Elements/Tabs and modify the path used to
generate the URL for the Take link.

Change this:

    $actions->{'Take'} =    
      { 
       path => "Ticket/Display.html?Action=Take&Status=open&id=".$id,
       title => 'Take'
      };

to:

    $actions->{'Take'} =    
      { 
       path => "Ticket/Display.html?Action=Take&Status=open&id=".$id,
       title => 'Take'
      };

Travis
Travis Campbell - Unix Systems Administrator = travis@beast.amd.com
5900 E. Ben White Blvd, Austin, TX 78741 = travis.campbell@amd.com
TEL: (512) 602-1888 PAG: (512) 604-0341 = webmaster@beast.amd.com
"Does anything work as expected?" Yes. An axe through the CPU.

Argh. Damn typos.On Tue, Jan 22, 2002 at 10:25:56PM -0600, Travis Campbell wrote:

Why don’t you just copy WebRT/html/Ticket/Elements/Tabs to
local/WebRT/html/Ticket/Elements/Tabs and modify the path used to
generate the URL for the Take link.

Change this:

    $actions->{'Take'} =
      {
       path => "Ticket/Display.html?Action=Take&Status=open&id=".$id,
       title => 'Take'
      };

WebRT/html/Ticket/Elements/Tabs (by default) contains:

     $actions->{'Take'} =
       {
        path => "Ticket/Display.html?Action=Take&id=".$id,
        title => 'Take'
       };

That’ll teach me to not read before I post. :slight_smile:

Travis
Travis Campbell - Unix Systems Administrator = travis@beast.amd.com
5900 E. Ben White Blvd, Austin, TX 78741 = travis.campbell@amd.com
TEL: (512) 602-1888 PAG: (512) 604-0341 = webmaster@beast.amd.com
"Does anything work as expected?" Yes. An axe through the CPU.

“Travis Campbell” travis.campbell@amd.com writes:

Why don’t you just copy WebRT/html/Ticket/Elements/Tabs to
local/WebRT/html/Ticket/Elements/Tabs and modify the path used to
generate the URL for the Take link.

Why do things the easy way? Thanks :slight_smile:

/Ian D
ian@assv.net