[Rt-commit] rt branch, 4.2/further-group-type-name-renames, updated. rt-4.1.8-487-gc9a40bd

Alex Vandiver alexmv at bestpractical.com
Tue May 28 16:08:33 EDT 2013


The branch, 4.2/further-group-type-name-renames has been updated
       via  c9a40bd71d757342d6b7f57b3fe2260b56468971 (commit)
      from  df00c13d5448764acf1a89760d9ae9fd7d8469ee (commit)

Summary of changes:
 lib/RT/Group.pm | 5 +++++
 1 file changed, 5 insertions(+)

- Log -----------------------------------------------------------------
commit c9a40bd71d757342d6b7f57b3fe2260b56468971
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Tue May 28 16:04:12 2013 -0400

    CreateRoleGroup should be back-compat with Name/Type as well

diff --git a/lib/RT/Group.pm b/lib/RT/Group.pm
index b7a3648..e17cfe3 100644
--- a/lib/RT/Group.pm
+++ b/lib/RT/Group.pm
@@ -697,6 +697,11 @@ sub CreateRoleGroup {
         return ( 0, $self->loc("Invalid Group Name and Domain") );
     }
 
+    if ( exists $args{'Type'} ) {
+        RT->Deprecated( Instead => 'Name', Arguments => 'Type', Remove => '4.4' );
+        $args{'Name'} = $args{'Type'};
+    }
+
     my %create = map { $_ => $args{$_} } qw(Domain Instance Name);
 
     my $duplicate = RT::Group->new( RT->SystemUser );

-----------------------------------------------------------------------


More information about the Rt-commit mailing list