[Rt-commit] r8392 - in rt/branches/3.7-EXPERIMENTAL-TUNIS: .

thayes at bestpractical.com thayes at bestpractical.com
Fri Aug 3 15:26:09 EDT 2007


Author: thayes
Date: Fri Aug  3 15:26:08 2007
New Revision: 8392

Modified:
   rt/branches/3.7-EXPERIMENTAL-TUNIS/   (props changed)
   rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Elements/ShowLock

Log:
 r8583 at toth:  toth | 2007-08-03 15:23:10 -0400
 * Fixed up display for passed-in IDs to /Elements/ShowLock
 


Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Elements/ShowLock
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Elements/ShowLock	(original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Elements/ShowLock	Fri Aug  3 15:26:08 2007
@@ -33,7 +33,7 @@
 % #means the lock was just created.
 % } elsif($ago < 5) {	
 		<&|/l, $TicketLabel &>You have locked [_1]</&>.
-%	if($Unlock) {
+%	if($Unlock && !$Id) {
 		[<a href="<%$RT::WebPath%>/Ticket/Display.html?id=<%$Ticket->id%>&Lock=remove"><&|/l&>Unlock</&></a>]
 %	}
 % }	else {
@@ -45,6 +45,7 @@
 
 </div>
 % } else {
+%	return unless $u->Name;
 % 	$TicketLabel = 'This ticket' if $TicketLabel eq 'this ticket';	
 <div class="locked">
 <&|/l, $TicketLabel, $u->Name, $ago &>[_1] has been locked by [_2] for [_3]</&>.


More information about the Rt-commit mailing list