X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Flib%2FRT%2FGroup.pm;h=d4d2802ad39419bd28e7d0faf2b1192b1512c880;hb=679854b8bbc65d112071111bbd7f34a6a481fb30;hp=b367b2f967cd0b4c84883a181db4c25b62a0255b;hpb=9b328d940af56b9924a342192ebb0790478fa705;p=freeside.git diff --git a/rt/lib/RT/Group.pm b/rt/lib/RT/Group.pm index b367b2f96..d4d2802ad 100755 --- a/rt/lib/RT/Group.pm +++ b/rt/lib/RT/Group.pm @@ -3,7 +3,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) @@ -51,7 +51,7 @@ =head1 NAME - RT::Group - RT\'s group object + RT::Group - RT's group object =head1 SYNOPSIS @@ -529,8 +529,9 @@ sub _ValidateUserDefinedName { my $dupcheck = RT::Group->new(RT->SystemUser); $dupcheck->LoadUserDefinedGroup($value); - return (0, $self->loc("Group name '[_1]' is already in use", $value)) - if $dupcheck->id; + if ( $dupcheck->id && ( !$self->id || $self->id != $dupcheck->id ) ) { + return ( 0, $self->loc( "Group name '[_1]' is already in use", $value ) ); + } return 1; }