[Rt-commit] r8318 - in rtir/branches/2.3-EXPERIMENTAL: .

thayes at bestpractical.com thayes at bestpractical.com
Mon Jul 30 15:05:43 EDT 2007


Author: thayes
Date: Mon Jul 30 15:05:43 2007
New Revision: 8318

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:
 r8479 at toth:  toth | 2007-07-30 14:58:49 -0400
 * Made lock display for the Create component conditional upon being used in a Split operation (the only create operation that should need to display lock info)
 


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	Mon Jul 30 15:05:43 2007
@@ -47,7 +47,9 @@
 &>
 % }
 
-<& /Elements/ShowLock, Ticket => $TicketObj, Unlock => 0 &> 
+% if($Split) {
+	<& /Elements/ShowLock, Ticket => $TicketObj, Unlock => 0 &>
+% }
 
 <& /Elements/ListActions, actions => \@results &>
 
@@ -411,6 +413,7 @@
 
     unless ( $checks_failure ) {
         $ARGS{'new-MemberOf'} = $parentvalue if $parentvalue;
+        $TicketObj->Unlock() if $TicketObj->Locked();
         return $m->comp( 'Display.html', %ARGS, SkipNotification => \@SkipNotification, results => \@results );
     }
     unshift @results, loc("Creation failed:");

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	Mon Jul 30 15:05:43 2007
@@ -42,7 +42,6 @@
     TicketObj        => $TicketObj,
     Incident         => $Incident,
 &>
-% $TicketObj->Unlock();
 
 <%INIT>
 my $TicketObj = LoadTicket( $Ticket );


More information about the Rt-commit mailing list