X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fshare%2Fhtml%2FTicket%2FElements%2FShowQueue;h=5aefe9c4eb5e2e9e271f274ecb77f7169821e7d9;hp=6742d4a72c9de516be375a024c4a9812461dcd8f;hb=e9e0cf0989259b94d9758eceff448666a2e5a5cc;hpb=fc6209f398899f0211cfcedeb81a3cd65e04a941 diff --git a/rt/share/html/Ticket/Elements/ShowQueue b/rt/share/html/Ticket/Elements/ShowQueue index 6742d4a72..5aefe9c4e 100644 --- a/rt/share/html/Ticket/Elements/ShowQueue +++ b/rt/share/html/Ticket/Elements/ShowQueue @@ -2,7 +2,7 @@ %# %# COPYRIGHT: %# -%# This software is Copyright (c) 1996-2011 Best Practical Solutions, LLC +%# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC %# %# %# (Except where explicitly superseded by other copyright notices) @@ -45,12 +45,20 @@ %# those contributions and any derivatives thereof. %# %# END BPS TAGGED BLOCK }}} -<% $QueueObj->Name %> +<% $value %> <%ARGS> +$Ticket => undef $QueueObj <%INIT> my $value = $QueueObj->Name; + +if ( $Ticket and $Ticket->CurrentUserHasRight('SeeQueue') ) { + # Grab the queue name anyway if the current user can + # see the queue based on his role for this ticket + $value = $QueueObj->__Value('Name'); +} + $value = '#'. $QueueObj->id unless defined $value && length $value;