[Rt-commit] rt branch, 4.0/skip-processing-in-ticket-display, updated. rt-4.0.4-181-gda5a772

Thomas Sibley trs at bestpractical.com
Wed Jan 11 11:00:33 EST 2012


The branch, 4.0/skip-processing-in-ticket-display has been updated
       via  da5a772238453f36349f854d5bd4d78e13861280 (commit)
      from  3502188a1e887d36297a2b16c25b015ba711b6d6 (commit)

Summary of changes:
 share/html/Ticket/Display.html |   80 ++++++++++++++++++++--------------------
 1 files changed, 40 insertions(+), 40 deletions(-)

- Log -----------------------------------------------------------------
commit da5a772238453f36349f854d5bd4d78e13861280
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed Jan 11 10:59:47 2012 -0500

    Indent code inside new $SkipProcessing. No code change, only whitespace.

diff --git a/share/html/Ticket/Display.html b/share/html/Ticket/Display.html
index 5bd58c7..ebb81a0 100755
--- a/share/html/Ticket/Display.html
+++ b/share/html/Ticket/Display.html
@@ -145,48 +145,48 @@ if ($ARGS{'id'} eq 'new') {
         SkipProcessing => \$SkipProcessing );
 
     if ( !$SkipProcessing ) {
-    if ( defined $ARGS{'Action'} ) {
-        if ($ARGS{'Action'} =~ /^(Steal|Delete|Take|SetTold)$/) {
-            my $action = $1;
-            my ($res, $msg) = $TicketObj->$action();
-            push(@Actions, $msg);
+        if ( defined $ARGS{'Action'} ) {
+            if ($ARGS{'Action'} =~ /^(Steal|Delete|Take|SetTold)$/) {
+                my $action = $1;
+                my ($res, $msg) = $TicketObj->$action();
+                push(@Actions, $msg);
+            }
         }
-    }
 
-    $m->callback(CallbackName => 'ProcessArguments', 
-            Ticket => $TicketObj, 
-            ARGSRef => \%ARGS, 
-            Actions => \@Actions);
-    
-    $ARGS{UpdateAttachments} = $session{'Attachments'};
-    push @Actions,
-        ProcessUpdateMessage(
-        ARGSRef   => \%ARGS,
-        Actions   => \@Actions,
-        TicketObj => $TicketObj,
-        );
-    delete $session{'Attachments'};
-
-    #Process status updates
-    push @Actions, ProcessTicketWatchers(ARGSRef => \%ARGS, TicketObj => $TicketObj );
-    push @Actions, ProcessTicketBasics(  ARGSRef => \%ARGS, TicketObj => $TicketObj );
-    push @Actions, ProcessTicketLinks(   ARGSRef => \%ARGS, TicketObj => $TicketObj );
-    push @Actions, ProcessTicketDates(   ARGSRef => \%ARGS, TicketObj => $TicketObj );
-    push @Actions, ProcessObjectCustomFieldUpdates(ARGSRef => \%ARGS, TicketObj => $TicketObj );
-    push @Actions, ProcessTicketReminders( ARGSRef => \%ARGS, TicketObj => $TicketObj );
-
-    # XXX: we shouldn't block actions here if user has no right to see the ticket,
-    # but we should allow him to see actions he has done
-    unless ($TicketObj->CurrentUserHasRight('ShowTicket')) {
-        Abort("No permission to view ticket");
-    }
-    if ( $ARGS{'MarkAsSeen'} ) {
-        $TicketObj->SetAttribute(
-            Name => 'User-'. $TicketObj->CurrentUser->id .'-SeenUpTo',
-            Content => $TicketObj->LastUpdated,
-        );
-        push @Actions, loc('Marked all messages as seen');
-    }
+        $m->callback(CallbackName => 'ProcessArguments', 
+                Ticket => $TicketObj, 
+                ARGSRef => \%ARGS, 
+                Actions => \@Actions);
+        
+        $ARGS{UpdateAttachments} = $session{'Attachments'};
+        push @Actions,
+            ProcessUpdateMessage(
+            ARGSRef   => \%ARGS,
+            Actions   => \@Actions,
+            TicketObj => $TicketObj,
+            );
+        delete $session{'Attachments'};
+
+        #Process status updates
+        push @Actions, ProcessTicketWatchers(ARGSRef => \%ARGS, TicketObj => $TicketObj );
+        push @Actions, ProcessTicketBasics(  ARGSRef => \%ARGS, TicketObj => $TicketObj );
+        push @Actions, ProcessTicketLinks(   ARGSRef => \%ARGS, TicketObj => $TicketObj );
+        push @Actions, ProcessTicketDates(   ARGSRef => \%ARGS, TicketObj => $TicketObj );
+        push @Actions, ProcessObjectCustomFieldUpdates(ARGSRef => \%ARGS, TicketObj => $TicketObj );
+        push @Actions, ProcessTicketReminders( ARGSRef => \%ARGS, TicketObj => $TicketObj );
+
+        # XXX: we shouldn't block actions here if user has no right to see the ticket,
+        # but we should allow him to see actions he has done
+        unless ($TicketObj->CurrentUserHasRight('ShowTicket')) {
+            Abort("No permission to view ticket");
+        }
+        if ( $ARGS{'MarkAsSeen'} ) {
+            $TicketObj->SetAttribute(
+                Name => 'User-'. $TicketObj->CurrentUser->id .'-SeenUpTo',
+                Content => $TicketObj->LastUpdated,
+            );
+            push @Actions, loc('Marked all messages as seen');
+        }
     }
 }
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list