[Rt-commit] rt branch, 4.4/principals-autocomplete-callbacks, repushed
? sunnavy
sunnavy at bestpractical.com
Thu Jun 3 13:45:22 EDT 2021
The branch 4.4/principals-autocomplete-callbacks was deleted and repushed:
was f3db8aca81a7dd4787d893bab1a4d03e29c07bda
now ad82a95637b75b10ed00eda2f270275c061f0636
-: ------- > 1: 9d39546eb9 Pass term and args to ModifyUsersLimit so it can behave differently based on it
1: 7ceb56ed2f ! 2: 8ac4134ed1 Add ModifyGroupsLimit callback for Groups autocomplete
@@ -11,7 +11,7 @@
foreach (split /\s*,\s*/, $exclude) {
$groups->Limit(FIELD => 'id', VALUE => $_, OPERATOR => '!=', ENTRYAGGREGATOR => 'AND');
}
-+$m->callback( CallbackName => "ModifyGroupsLimit", Groups => $groups );
++$m->callback( CallbackName => "ModifyGroupsLimit", Groups => $groups, Term => $term, ARGSRef => \%ARGS );
my @suggestions;
2: f3db8aca81 ! 3: ad82a95637 Sync callbacks of Users/Groups autcomplete to Principals
@@ -35,8 +35,8 @@
Max => $max,
Exclude => \@exclude,
);
-+$m->callback( CallbackName => "ModifyUsersLimit", Users => $users, CallbackPage => '/Helpers/Autocomplete/Users' );
-+$m->callback( CallbackName => "ModifyUsersLimit", Users => $users );
++$m->callback( CallbackName => "ModifyUsersLimit", Users => $users, Term => $term, ARGSRef => \%ARGS, CallbackPage => '/Helpers/Autocomplete/Users' );
++$m->callback( CallbackName => "ModifyUsersLimit", Users => $users, Term => $term, ARGSRef => \%ARGS );
(my $group_term = $term) =~ s/^\s*group\s*:\s*//i;
my $groups = RT::Groups->new( $CurrentUser );
@@ -44,8 +44,8 @@
foreach (@exclude) {
$groups->Limit(FIELD => 'id', VALUE => $_, OPERATOR => '!=', ENTRYAGGREGATOR => 'AND');
}
-+$m->callback( CallbackName => "ModifyGroupsLimit", Groups => $groups, CallbackPage => '/Helpers/Autocomplete/Groups' );
-+$m->callback( CallbackName => "ModifyGroupsLimit", Groups => $groups );
++$m->callback( CallbackName => "ModifyGroupsLimit", Groups => $groups, Term => $term, ARGSRef => \%ARGS, CallbackPage => '/Helpers/Autocomplete/Groups' );
++$m->callback( CallbackName => "ModifyGroupsLimit", Groups => $groups, Term => $term, ARGSRef => \%ARGS );
my @suggestions;
More information about the rt-commit
mailing list