X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FAdmin%2FElements%2FEditRights;h=ff8aece1774669d307a7c42a2bfaf2fa031de7bc;hp=e673593135ab9d06b06e26a7adc4e71a5506636b;hb=919e930aa9279b3c5cd12b593889cd6de79d67bf;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500 diff --git a/rt/share/html/Admin/Elements/EditRights b/rt/share/html/Admin/Elements/EditRights index e67359313..ff8aece17 100644 --- a/rt/share/html/Admin/Elements/EditRights +++ b/rt/share/html/Admin/Elements/EditRights @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -66,6 +66,18 @@ unless ( $AddPrincipal ) { $AddPrincipal = 'user'; # loc } } + +my $anchor = $DECODED_ARGS->{Anchor} || ''; +if ($anchor =~ /AddPrincipal/) { + for my $type ("group", "user") { + my $record = _ParseACLNewPrincipal($DECODED_ARGS, $type) + or next; + if ($record->PrincipalId) { + $anchor = "#acl-" . $record->PrincipalId; + last; + } + } +} %# Principals is an array of arrays, where the inner arrays are like: %# [ 'Category name' => $CollectionObj => 'DisplayColumn' => 1 ] @@ -74,16 +86,39 @@ unless ( $AddPrincipal ) {
+ +