[Rt-commit] rt branch, 4.4/add-members-before-process-arguments-callback, created. rt-4.4.4-144-gf1ee32c4aa
Steve Burr
steve at bestpractical.com
Tue Nov 10 14:03:28 EST 2020
The branch, 4.4/add-members-before-process-arguments-callback has been created
at f1ee32c4aa25ed56ef6f3ed40cc40371f9375271 (commit)
- Log -----------------------------------------------------------------
commit f1ee32c4aa25ed56ef6f3ed40cc40371f9375271
Author: Steven Burr <steve at bestpractical.com>
Date: Tue Nov 10 13:56:56 2020 -0500
Add BeforeProcessArguments callback to group members
The Admin/Groups/Members.html page needed a hook to allow
callbacks to modify the list of group members being
added
diff --git a/share/html/Admin/Groups/Members.html b/share/html/Admin/Groups/Members.html
index ec6849568d..a080cc20cb 100644
--- a/share/html/Admin/Groups/Members.html
+++ b/share/html/Admin/Groups/Members.html
@@ -121,6 +121,9 @@ $GroupsSeen{ $Group->id } = 1; # can't be a member of ourself
my (@results);
+$m->callback( CallbackName => 'BeforeProcessArguments', ARGSRef => \%ARGS, GroupObj => $Group,
+ResultsRef => \@results, UsersRef => \@AddMembersUsers, GroupsRef => \@AddMembersGroups);
+
# XXX: safe member id in value instead of name
foreach my $key (keys %ARGS) {
next unless $key =~ /^DeleteMember-(\d+)$/;
-----------------------------------------------------------------------
More information about the rt-commit
mailing list