X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FShredder%2FPlugin%2FUsers.pm;h=99071a2ed531814ba2024bdeefa753f12940ed6d;hb=e70abd21bab68b23488f7ef1ee2e693a3b365691;hp=2565fc546f8ca5f7ff7783ab56e44d2530076cad;hpb=b4b0c7e72d7eaee2fbfc7022022c9698323203dd;p=freeside.git diff --git a/rt/lib/RT/Shredder/Plugin/Users.pm b/rt/lib/RT/Shredder/Plugin/Users.pm index 2565fc546..99071a2ed 100644 --- a/rt/lib/RT/Shredder/Plugin/Users.pm +++ b/rt/lib/RT/Shredder/Plugin/Users.pm @@ -166,15 +166,9 @@ sub Run # Creator Created LastUpdated LastUpdatedBy)); if( my $s = $self->{'opt'}{'status'} ) { if( $s eq 'any' ) { - $objs->{'find_disabled_rows'} = 1; + $objs->FindAllRows; } elsif( $s eq 'disabled' ) { - $objs->{'find_disabled_rows'} = 1; - $objs->Limit( - ALIAS => $objs->PrincipalsAlias, - FIELD => 'Disabled', - OPERATOR => '!=', - VALUE => '0', - ); + $objs->LimitToDeleted; } else { $objs->LimitToEnabled; }