[Rt-commit] r8366 - in rtir/branches/2.3-EXPERIMENTAL: .
thayes at bestpractical.com
thayes at bestpractical.com
Wed Aug 1 16:31:34 EDT 2007
Author: thayes
Date: Wed Aug 1 16:31:33 2007
New Revision: 8366
Modified:
rtir/branches/2.3-EXPERIMENTAL/ (props changed)
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Update.html
Log:
r8543 at toth: toth | 2007-08-01 16:31:20 -0400
* Fixed for new locking system
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Update.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Update.html (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Update.html Wed Aug 1 16:31:33 2007
@@ -168,8 +168,10 @@
$m->comp( '/RTIR/Create.html:ProcessAttachments', %ARGS );
if ( exists $ARGS{SubmitTicket} ) {
- $ARGS{'Lock'} = 'remove';
- return $m->comp('/RTIR/Display.html', %ARGS);
+ my $lock = $Ticket->Locked();
+ my $Duration = time() - $lock->Content->{'Timestamp'} if $lock;
+ $Ticket->Unlock();
+ return $m->comp('/RTIR/Display.html', Duration => $Duration, %ARGS);
}
</%INIT>
More information about the Rt-commit
mailing list