[Rt-devel] Queue_Overlay::ValidateName in 3.2.2 vs 3.4.4

Jesse Vincent jesse at bestpractical.com
Thu Dec 1 01:14:52 EST 2005




> 
> Yes. I am creating Queues on the fly, and checking that they haven't
> already been created before doing so. Like this:
> 
> 	if (RT::Queue->ValidateName("ws-$id"))
> 	{


Nope. you can't do that.   

> 		#ValidateName says that's an OK name for a queue, which means it
> 		doesn't yet exist
> 		$new_queue_already_exists = 0;
> 	}
> 
> What I'm doing is creating Queues named 'ws-$id' where $id is the TicketId
> in a "master" queue. The ticket in the 'master' queue allows the user
> to create the 'secondary' queue if desired.
> 
> Jens
> 

-- 


More information about the Rt-devel mailing list