[rt-users] Approval by group

Todd Chapman todd at chaka.net
Mon Mar 14 10:23:45 EST 2005


On Mon, Mar 14, 2005 at 10:07:27AM -0500, William Faulk wrote:
> 
> >AdminCC: {$g = RT::Group->new($RT::SystemUser), 
> >$g->LoadUserDefinedGroup("Unix"), $g->id}
> 
> I couldn't get it to work as one statement, so I had to split it up like 
> that.
> 
> Both "RT::Group->new($RT::SystemUser)->LoadUserDefinedGroup("Unix")->id" 
> and "$g = RT::Group->new($RT::SystemUser)->LoadUserDefinedGroup("Unix"), 
> $g->id" generated errors about "Can't locate object method "id" via 
> package "Found Object" (perhaps you forgot to load "Found Object"?) at 
> template line 5".  Splitting it up fixes it, though, and places the 
> correct thing in the AdminCC field on the approval; it lists the group 
> and all the members of the group.
> 
> Thanks so much for your help.  I'm going to put this in the Wiki.
> 

I'm not sure why you would need to split it into two. It looks
like you have a comma between the two statements. It should
be a semicolon.



More information about the rt-users mailing list