[Rt-commit] r8354 - in rtir/branches/2.3-EXPERIMENTAL: . html/RTIR

thayes at bestpractical.com thayes at bestpractical.com
Wed Aug 1 11:51:13 EDT 2007


Author: thayes
Date: Wed Aug  1 11:51:12 2007
New Revision: 8354

Modified:
   rtir/branches/2.3-EXPERIMENTAL/   (props changed)
   rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Create.html
   rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Create.html

Log:
 r8503 at toth:  toth | 2007-08-01 10:48:53 -0400
 * Fixed bug resulting from trying to unlock a Ticket that doesn't exist
 


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 Aug  1 11:51:12 2007
@@ -413,7 +413,7 @@
 
     unless ( $checks_failure ) {
         $ARGS{'new-MemberOf'} = $parentvalue if $parentvalue;
-        $TicketObj->Unlock() if $TicketObj->Locked();
+        $TicketObj->Unlock() if $TicketObj && $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/Incident/Create.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Create.html	(original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/Create.html	Wed Aug  1 11:51:12 2007
@@ -275,7 +275,7 @@
         }
     }
     if( $inc_obj ) {
-    	$TicketObj->Unlock() if $TicketObj->Locked();
+    	$TicketObj->Unlock() if $TicketObj && $TicketObj->Locked();
         return $m->comp('Display.html', id => $inc_obj->id, results => \@results );
     }
 }


More information about the Rt-commit mailing list