[Rt-commit] r8316 - in rt/branches/3.7-EXPERIMENTAL-TUNIS: .
thayes at bestpractical.com
thayes at bestpractical.com
Mon Jul 30 13:55:36 EDT 2007
Author: thayes
Date: Mon Jul 30 13:55:35 2007
New Revision: 8316
Modified:
rt/branches/3.7-EXPERIMENTAL-TUNIS/ (props changed)
rt/branches/3.7-EXPERIMENTAL-TUNIS/html/Elements/ShowLock
Log:
r8475 at toth: toth | 2007-07-30 13:53:49 -0400
* Return if no defined ticket was passed in
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 Jul 30 13:55:35 2007
@@ -15,8 +15,9 @@
<&|/l, $u->Name, $ago &>This ticket has been locked by [_1] for [_2]</&>.
</div>
%}
-<%init>
+<%INIT>
my $Lock;
+return unless defined $Ticket;
return unless defined $Duration || ($Lock = $Ticket->Locked());
my $u = RT::User->new($session{'CurrentUser'});
@@ -31,9 +32,9 @@
} else {
return;
}
-</%init>
-<%args>
+</%INIT>
+<%ARGS>
$Ticket
$Duration => undef
$Unlock => 1;
-</%args>
+</%ARGS>
More information about the Rt-commit
mailing list