[Rt-commit] r8287 - in rtir/branches/2.3-EXPERIMENTAL: .
thayes at bestpractical.com
thayes at bestpractical.com
Wed Jul 25 13:58:56 EDT 2007
Author: thayes
Date: Wed Jul 25 13:58:55 2007
New Revision: 8287
Modified:
rtir/branches/2.3-EXPERIMENTAL/ (props changed)
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Create.html
rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Split.html
Log:
r8432 at toth: toth | 2007-07-25 13:58:40 -0400
* Added locking to the RTIR Split feature
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Create.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Create.html (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Create.html Wed Jul 25 13:58:55 2007
@@ -47,6 +47,8 @@
&>
% }
+<& /Elements/ShowLock, Ticket => $TicketObj, noUnlock => 1 &>
+
<& /Elements/ListActions, actions => \@results &>
% if ( $Split && !$TicketObj->CurrentUserHasRight('ModifyTicket') ) {
Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Split.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Split.html (original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Split.html Wed Jul 25 13:58:55 2007
@@ -42,9 +42,11 @@
TicketObj => $TicketObj,
Incident => $Incident,
&>
+% $TicketObj->Unlock();
<%INIT>
my $TicketObj = LoadTicket( $Ticket );
+$TicketObj->Lock() unless $TicketObj->Locked();
my $Type = RT::IR::TicketType( Ticket => $TicketObj );
if ( $m->comp_exists("/RTIR/$Type/Split.html") ) {
More information about the Rt-commit
mailing list