[Rt-commit] r8403 - rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Elements
ruz at bestpractical.com
ruz at bestpractical.com
Mon Aug 6 11:19:19 EDT 2007
Author: ruz
Date: Mon Aug 6 11:19:18 2007
New Revision: 8403
Modified:
rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Elements/ShowLock
Log:
* revert part of my changes
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 Mon Aug 6 11:19:18 2007
@@ -52,13 +52,10 @@
</div>
%}
<%INIT>
-my $Lock;
-if ( $Id ) {
- $Ticket = LoadTicket($Id);
- $Lock = $Ticket->Locked;
-}
+$Ticket = LoadTicket($Id) if $Id;
return unless defined $Ticket;
+my $Lock = $Ticket->Locked;
$Duration = time - $Lock->Content->{'Timestamp'}
if $Lock && !defined $Duration;
return unless defined $Duration;
More information about the Rt-commit
mailing list