[Rt-devel] RT 3.6.0rc2
Marius Hein
mhein at itsocks.de
Wed May 17 09:27:33 EDT 2006
Hi all.
> The RC2 Search by CF is cool, but now i found another small
> ?? Bug. If you define a search and set the sort order to a
> CF, then you get empty results, or better, RT displays xxx
> found tickets, but don't display something.
I've seen that the Field Metadata can't match the SortField, so i've added
a:
CustomField => [ 'CUSTOMFIELD', ]
And CF decipher LoadByName if no queue was found so you can get always get
an cfid back to the sub:
if ($queue) {
...
}
else {
my $cf = RT::CustomField->new( $self->CurrentUser );
$cf->LoadByName( Name => $field );
$cfid = $cf->id if $cf;
}
In the OrderByCols function, if a cfid was found i've limited to the
specific CF... I don't know if it's useful but the result was sorted to the
only one CF and not to all which are found
unless ($cfid) {
...
}
else {
$self->SUPER::Limit(
ALIAS => $CFvs,
FIELD => 'CustomField',
VALUE => $cfid,
OPERATOR => '=',
);
}
Regards,
Marius.
More information about the Rt-devel
mailing list