<& /Admin/Elements/Header, Title => 'Modify a queue' &>

Modify a queue

<& /Elements/ListActions, actions => \@results &> <& /Elements/TitleBoxStart, title => 'Editing Configuration for queue '.$QueueObj->Id &>
Queue Name:
Description:
Correspondence Address: Comment Address:
Priority starts at: Over time, priority moves toward:
Requests should be due in: days.
<& /Elements/Submit &>
<& /Elements/TitleBoxEnd &> <%INIT> use RT::Interface::Web; my $QueueObj = new RT::Queue($session{'CurrentUser'}); $QueueObj->Load($id) || $QueueObj->Load($QueueId) || Abort('/Elements/Error', Why => "Couldn't load queue '$QueueId'"); my @fields = qw(Description CorrespondAddress CommentAddress QueueId InitialPriority FinalPriority DefaultDueIn); #Run through each field in this list. update the value if apropriate my $field; foreach $field (@fields) { my ($code, $msg); my $check = "if ((defined \$$field) and (\$$field !~ \$QueueObj->$field)) { (\$code, \$msg) = \$QueueObj->Set$field(\$$field); push \@results, \$msg; }"; eval $check; } <%ARGS> $id => undef $result => undef @results => undef $QueueId => undef $Description => undef $CorrespondAddress => undef $CommentAddress => undef $InitialPriority => undef $FinalPriority => undef $DefaultDueIn => undef