% return if !@options;
| |
<%INIT>
my (@options, %rules);
if ( $ScripX ) {
my $ScripXObj = "RT::Scrip$Name"->new($session{'CurrentUser'});
$ScripXObj->Load($ScripX);
my $QueueObj = RT::Queue->new($session{'CurrentUser'});
$QueueObj->Load($Queue);
my $method = "Load$Name";
my $XObj = $ScripXObj->$method();
@options = $XObj->Options('QueueObj' => $QueueObj);
%rules = split("\n", $Default);
}
%INIT>
<%ARGS>
$Name => undef
$Default => undef
$Queue => 0
$ScripX => undef
%ARGS>