Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Do not dump non-userdefined groups

There really should be no reason to dump those
  • Loading branch information...
commit 44e9f6789d205280c160b3baacb168d988429db0 1 parent 3019f31
Kai S authored

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. +5 5 sbin/rt-dump-metadata.in
10 sbin/rt-dump-metadata.in
@@ -123,6 +123,11 @@ foreach my $class (@classes) {
123 123 $objects->UnLimit;
124 124 $objects->LimitToPrivileged if $class eq 'Users'
125 125 && $opt{'limit-to-privileged'};
  126 + $objects->Limit(
  127 + FIELD => 'Domain',
  128 + OPERATOR => '=',
  129 + VALUE => 'UserDefined'
  130 + ) if $class eq 'Groups';
126 131
127 132 if ( $class eq 'CustomFields' ) {
128 133 $objects->OrderByCols(
@@ -146,11 +151,6 @@ foreach my $class (@classes) {
146 151 OPERATOR => '!=',
147 152 VALUE => $SystemUserId
148 153 ) if $class eq 'Users';
149   - $objects->Limit(
150   - FIELD => 'Domain',
151   - OPERATOR => '=',
152   - VALUE => 'UserDefined'
153   - ) if $class eq 'Groups';
154 154 }
155 155
156 156 my %fields;

0 comments on commit 44e9f67

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