X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FAdmin%2FElements%2FEditRights;h=1522543f78cfb9f91440f13ca0b80561b31db04f;hp=e673593135ab9d06b06e26a7adc4e71a5506636b;hb=7588a4ac90a9b07c08a3107cd1107d773be1c991;hpb=98d2b25256055abb0dfcb9f586b434474fa97afd diff --git a/rt/share/html/Admin/Elements/EditRights b/rt/share/html/Admin/Elements/EditRights index e67359313..1522543f7 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-2013 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,36 @@ unless ( $AddPrincipal ) {
+ +