[Rt-commit] r11644 - rt/branches/3.6-RELEASE/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Tue Apr 8 18:11:05 EDT 2008
Author: ruz
Date: Tue Apr 8 18:11:04 2008
New Revision: 11644
Modified:
rt/branches/3.6-RELEASE/lib/RT/Tickets_Overlay.pm
Log:
* move limit by name into JoinCustomField as it's really
must be there
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 Tue Apr 8 18:11:04 2008
@@ -1393,9 +1393,15 @@
TABLE2 => 'CustomFields',
FIELD2 => 'id',
);
+ $self->SUPER::Limit(
+ LEFTJOIN => $CFs,
+ ENTRYAGGREGATOR => 'AND',
+ FIELD => 'Name',
+ VALUE => $field,
+ );
$TicketCFs = $self->{_sql_object_cfv_alias}{$cfkey} = $self->Join(
- TYPE => 'left',
+ TYPE => 'LEFT',
ALIAS1 => $CFs,
FIELD1 => 'id',
TABLE2 => 'ObjectCustomFieldValues',
@@ -1461,17 +1467,6 @@
$self->_OpenParen;
- if ( $CFs ) {
- $self->SUPER::Limit(
- ALIAS => $CFs,
- FIELD => 'Name',
- VALUE => $field,
- ENTRYAGGREGATOR => 'AND',
- );
- }
-
- $self->_OpenParen if $null_columns_ok;
-
$self->_SQLLimit(
ALIAS => $TicketCFs,
FIELD => 'Content',
@@ -1490,7 +1485,6 @@
QUOTEVALUE => 0,
ENTRYAGGREGATOR => 'OR',
);
- $self->_CloseParen;
}
$self->_CloseParen;
More information about the Rt-commit
mailing list