[freeside-commits] freeside/rt/lib/RT/CustomFieldValues Queues.pm, NONE, 1.1.2.2
Ivan,,,
ivan at wavetail.420.am
Mon Apr 18 13:05:42 PDT 2011
Update of /home/cvs/cvsroot/freeside/rt/lib/RT/CustomFieldValues
In directory wavetail.420.am:/tmp/cvs-serv17669
Added Files:
Tag: FREESIDE_2_1_BRANCH
Queues.pm
Log Message:
adding missing file on 2.1 from 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