Skip to content
Browse files

Do not dump non-userdefined groups

There really should be no reason to dump those
  • Loading branch information...
1 parent 3019f31 commit 44e9f6789d205280c160b3baacb168d988429db0 @giganteous committed Mar 15, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 sbin/rt-dump-metadata.in
View
10 sbin/rt-dump-metadata.in
@@ -123,6 +123,11 @@ foreach my $class (@classes) {
$objects->UnLimit;
$objects->LimitToPrivileged if $class eq 'Users'
&& $opt{'limit-to-privileged'};
+ $objects->Limit(
+ FIELD => 'Domain',
+ OPERATOR => '=',
+ VALUE => 'UserDefined'
+ ) if $class eq 'Groups';
if ( $class eq 'CustomFields' ) {
$objects->OrderByCols(
@@ -146,11 +151,6 @@ foreach my $class (@classes) {
OPERATOR => '!=',
VALUE => $SystemUserId
) if $class eq 'Users';
- $objects->Limit(
- FIELD => 'Domain',
- OPERATOR => '=',
- VALUE => 'UserDefined'
- ) if $class eq 'Groups';
}
my %fields;

0 comments on commit 44e9f67

Please sign in to comment.
Something went wrong with that request. Please try again.