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

thayes at bestpractical.com thayes at bestpractical.com
Tue Jul 31 17:41:09 EDT 2007


Author: thayes
Date: Tue Jul 31 17:41:09 2007
New Revision: 8335

Modified:
   rt/branches/3.7-EXPERIMENTAL-TUNIS/   (props changed)
   rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Ticket/Display.html

Log:
 r8501 at toth:  toth | 2007-07-31 17:40:59 -0400
 * minor cleanup
 


Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Ticket/Display.html
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Ticket/Display.html	(original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Ticket/Display.html	Tue Jul 31 17:41:09 2007
@@ -52,7 +52,7 @@
     current_tab => 'Ticket/Display.html?id='.$TicketObj->id,
     Title => loc("#[_1]: [_2]", $TicketObj->Id, $TicketObj->Subject) &>
 
-% $Duration ||= $ARGS{'Duration'} unless defined $Duration;
+% $Duration ||= $ARGS{'Duration'};
 <& /Elements/ShowLock, Ticket => $TicketObj, Duration => $Duration &>
 
 <& /Elements/ListActions, actions => \@Actions &>
@@ -156,9 +156,7 @@
             unless($lock) {
                 push @Actions, loc('This ticket was not locked');
 			} elsif ( $lock->Content->{'User'} == $session{'CurrentUser'}->id ) {
-				$time = time();
-				print "Time is $time.<br />Timestamp of lock: " . $lock->Content->{'Timestamp'};
-				$Duration = $time - $lock->Content->{'Timestamp'};
+				$Duration = time() - $lock->Content->{'Timestamp'};
 				$TicketObj->Unlock();
                 push @Actions, loc('You have unlocked this ticket');
 			} else {


More information about the Rt-commit mailing list