[Rt-commit] r11410 - rt/branches/3.6-RELEASE/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Wed Apr 2 22:01:42 EDT 2008
Author: ruz
Date: Wed Apr 2 22:01:42 2008
New Revision: 11410
Modified:
rt/branches/3.6-RELEASE/lib/RT/Tickets_Overlay.pm
Log:
* if the CF has multiple values then we must use new set of joins
for sorting
Modified: rt/branches/3.6-RELEASE/lib/RT/Tickets_Overlay.pm
==============================================================================
--- rt/branches/3.6-RELEASE/lib/RT/Tickets_Overlay.pm (original)
+++ rt/branches/3.6-RELEASE/lib/RT/Tickets_Overlay.pm Wed Apr 2 22:01:42 2008
@@ -1524,8 +1524,9 @@
}
push @res, { %$row, ALIAS => $users, FIELD => $subkey };
} elsif ( $meta->[0] eq 'CUSTOMFIELD' ) {
- my ($queue, $field, $cfid ) = $self->_CustomFieldDecipher( $subkey );
+ my ($queue, $field, $cfid, $cf_obj) = $self->_CustomFieldDecipher( $subkey );
my $cfkey = $cfid ? $cfid : "$queue.$field";
+ $cfkey .= ".ordering" if !$cf_obj || ($cf_obj->MaxValues||0) != 1;
my ($TicketCFs, $CFs) = $self->_CustomFieldJoin( $cfkey, $cfid, $field );
unless ($cfid) {
# For those cases where we are doing a join against the
More information about the Rt-commit
mailing list