[Rt-commit] r6867 - in rtir/branches/1.1-TESTING/html/RTIR: Incident

ruz at bestpractical.com ruz at bestpractical.com
Wed Jan 31 15:26:14 EST 2007


Author: ruz
Date: Wed Jan 31 15:26:14 2007
New Revision: 6867

Modified:
   rtir/branches/1.1-TESTING/html/RTIR/Display.html
   rtir/branches/1.1-TESTING/html/RTIR/Incident/Display.html

Log:
* add a callback 'BeforeDisplay' like in RT, but even if Incident has own display
  page, we anyway call callabck for '/RTIR/Display.html' so it's easier to use 
  component for both pages and it's not hard to check type of the ticket in the callback.

Modified: rtir/branches/1.1-TESTING/html/RTIR/Display.html
==============================================================================
--- rtir/branches/1.1-TESTING/html/RTIR/Display.html	(original)
+++ rtir/branches/1.1-TESTING/html/RTIR/Display.html	Wed Jan 31 15:26:14 2007
@@ -268,6 +268,13 @@
   $TimeWorked = $Ticket->TimeWorked."/".$Ticket->TimeLeft;
 }
 
+$m->comp('/Elements/Callback',
+    _CallbackName => 'BeforeDisplay',
+    TicketObj     => $Ticket,
+    Results       => \@Actions,
+    ARGSRef       => \%ARGS,
+);
+
 my $attachments = $m->comp('/Ticket/Elements/FindAttachments', Ticket => $Ticket);
 
 </%INIT>

Modified: rtir/branches/1.1-TESTING/html/RTIR/Incident/Display.html
==============================================================================
--- rtir/branches/1.1-TESTING/html/RTIR/Incident/Display.html	(original)
+++ rtir/branches/1.1-TESTING/html/RTIR/Incident/Display.html	Wed Jan 31 15:26:14 2007
@@ -375,6 +375,14 @@
         loc("WARNING: Incident [_1] has no children.", $Ticket->Id));
 }
 
+$m->comp('/Elements/Callback',
+    _CallbackName => 'BeforeDisplay',
+    Page          => '/RTIR/Display.html',
+    TicketObj     => $Ticket,
+    Results       => \@Actions,
+    ARGSRef       => \%ARGS,
+);
+
 my $attachments = $m->comp('/Ticket/Elements/FindAttachments', Ticket => $Ticket);
 
 </%INIT>


More information about the Rt-commit mailing list