[Rt-commit] r18682 - rt/3.999/trunk/lib/RT

ruz at bestpractical.com ruz at bestpractical.com
Wed Mar 4 21:02:52 EST 2009


Author: ruz
Date: Wed Mar  4 21:02:52 2009
New Revision: 18682

Modified:
   rt/3.999/trunk/lib/RT/Bootstrap.pm

Log:
* as we know that we're going to modify groups, create them

Modified: rt/3.999/trunk/lib/RT/Bootstrap.pm
==============================================================================
--- rt/3.999/trunk/lib/RT/Bootstrap.pm	(original)
+++ rt/3.999/trunk/lib/RT/Bootstrap.pm	Wed Mar  4 21:02:52 2009
@@ -361,13 +361,13 @@
                 } elsif ( $item->{'GroupDomain'} eq 'SystemInternal' ) {
                     $princ->load_system_internal_group( $item->{'GroupType'} );
                 } elsif ( $item->{'GroupDomain'} eq 'RT::System-Role' ) {
-                    $princ->load_system_role_group( $item->{'GroupType'} );
+                    $princ->create_role_group( object => RT->system, type => $item->{'GroupType'} );
                 } elsif ( $item->{'GroupDomain'} eq 'RT::Model::Queue-Role'
                     && $item->{'queue'} )
                 {
-                    $princ->load_queue_role_group(
-                        type  => $item->{'GroupType'},
-                        queue => $object->id
+                    $princ->create_role_group(
+                        object => $object,
+                        type   => $item->{'GroupType'},
                     );
                 } else {
                     $princ->load( $item->{'group_id'} );


More information about the Rt-commit mailing list