[freeside-commits] freeside/rt/lib/RT/CustomFieldValues Queues.pm, NONE, 1.1
Mark Wells
mark at wavetail.420.am
Tue Jan 25 02:13:18 PST 2011
Update of /home/cvs/cvsroot/freeside/rt/lib/RT/CustomFieldValues
In directory wavetail.420.am:/tmp/cvs-serv14078/rt/lib/RT/CustomFieldValues
Added Files:
Queues.pm
Log Message:
ticket escalation, part 2, RT#8254
--- NEW FILE: Queues.pm ---
package RT::CustomFieldValues::Queues;
use strict;
use warnings;
use base qw(RT::CustomFieldValues::External);
sub SourceDescription {
return 'RT ticket queues';
}
sub ExternalValues {
my $self = shift;
my @res;
my $i = 0;
my $queues = RT::Queues->new( $self->CurrentUser );
$queues->UnLimit;
$queues->OrderByCols( { FIELD => 'Name' } );
while( my $queue = $queues->Next ) {
push @res, {
name => $queue->Name,
description => $queue->Description,
sortorder => $i++,
};
}
return \@res;
}
1;
More information about the freeside-commits
mailing list