Changeset 1757 for branches/release-33/lib/MT/Object.pm
- Timestamp:
- 04/03/08 18:22:41 (20 months ago)
- Files:
-
- 1 modified
-
branches/release-33/lib/MT/Object.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-33/lib/MT/Object.pm
r1608 r1757 277 277 } 278 278 elsif (ref $terms eq 'ARRAY') { 279 if (my @class_terms = grep { ref $_ eq 'HASH' && 1 == scalar keys %$_ && $_->{$col} } @$terms) { 280 # Filter out any unlimiting class terms (class = *). 281 @$terms = grep { ref $_ ne 'HASH' || 1 != scalar keys %$_ || !$_->{$col} || $_->{$col} ne '*' } @$terms; 282 283 # The class column has been explicitly given or removed, so don't 284 # add one. 285 return; 286 } 279 287 @$terms = ( { $col => $props->{class_type} } => 'AND' => [ @$terms ] ); 280 281 288 } 282 289 }
