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

thayes at bestpractical.com thayes at bestpractical.com
Thu Jul 26 11:05:03 EDT 2007


Author: thayes
Date: Thu Jul 26 11:05:02 2007
New Revision: 8298

Modified:
   rtir/branches/2.3-EXPERIMENTAL/   (props changed)
   rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Create.html
   rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Display.html
   rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Edit.html
   rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Merge.html
   rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Update.html

Log:
 r8446 at toth:  toth | 2007-07-26 11:04:49 -0400
 * Fixed stylistic issues
 


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	Thu Jul 26 11:05:02 2007
@@ -47,7 +47,7 @@
 &>
 % }
 
-<& /Elements/ShowLock, Ticket => $TicketObj, noUnlock => 1 &> 
+<& /Elements/ShowLock, Ticket => $TicketObj, Unlock => 0 &> 
 
 <& /Elements/ListActions, actions => \@results &>
 

Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Display.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Display.html	(original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Display.html	Thu Jul 26 11:05:02 2007
@@ -30,8 +30,8 @@
     current_subtab => 'RTIR/Display.html?id='.$Ticket->id,
     Title => $Title &>
 
-% $duration ||= $ARGS{'duration'};
-<& /Elements/ShowLock, Ticket => $Ticket, duration => $duration &>
+% $Duration ||= $ARGS{'Duration'};
+<& /Elements/ShowLock, Ticket => $Ticket, Duration => $Duration &>
 <& /Elements/ListActions, actions => \@results &>
 <table border="0" cellpadding="0" cellspacing="2" width="100%">
 <tr>
@@ -209,7 +209,7 @@
 <%INIT>
 my ($name);
 my $Ticket = new RT::Ticket( $session{'CurrentUser'} );
-my $duration;
+my $Duration;
 
 my $QueueObj;
 unless ( $id eq 'new' ) {
@@ -269,11 +269,10 @@
             }
         } elsif ( $ARGS{'Lock'} eq 'remove' ) {
             my $lock = $Ticket->Locked();
-            if ( !$lock ) {
+            unless($lock) {
                 push @results, loc('This ticket was not locked');
-
-                } elsif ( $lock->Content->{'User'} == $session{'CurrentUser'}->id ) {
-                $duration = time() - $lock->Content->{'Timestamp'};
+            } elsif ( $lock->Content->{'User'} == $session{'CurrentUser'}->id ) {
+                $Duration = time() - $lock->Content->{'Timestamp'};
 				$Ticket->Unlock();
                 push @results, loc('You have unlocked this ticket');
             } else {

Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Edit.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Edit.html	(original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Edit.html	Thu Jul 26 11:05:02 2007
@@ -29,7 +29,7 @@
     current_subtab => "RTIR/Edit.html?id=".$Ticket->Id, 
     Title => $Title &>
 
-<& /Elements/ShowLock, Ticket => $Ticket, noUnlock => 1 &>          
+<& /Elements/ShowLock, Ticket => $Ticket, Unlock => 0 &>          
 <& /Elements/ListActions, actions => \@results &>
 
 % if (!$Ticket->CurrentUserHasRight('ModifyTicket')) {

Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Merge.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Merge.html	(original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Merge.html	Thu Jul 26 11:05:02 2007
@@ -35,7 +35,7 @@
     current_subtab => 'RTIR/Search/Refine.html',
 &>
 
-<& /Elements/ShowLock, Ticket => $Ticket, noUnlock => 1 &> 
+<& /Elements/ShowLock, Ticket => $Ticket, Unlock => 0 &> 
 
 <& /Elements/ListActions, actions => \@results &>
 

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	Thu Jul 26 11:05:02 2007
@@ -29,7 +29,7 @@
     Title => $title &>
 
 
-<& /Elements/ShowLock, Ticket => $Ticket, noUnlock => 1 &>
+<& /Elements/ShowLock, Ticket => $Ticket, Unlock => 0 &>
 <form action="Update.html" name="TicketUpdate" 
 	method="post" enctype="multipart/form-data">
 <input type="hidden" name="QuoteTransaction" value="<% $ARGS{'QuoteTransaction'} || '' %>" />


More information about the Rt-commit mailing list