[Rt-commit] [rtir] 01/01: Allow sorting on Show Children pages

? sunnavy sunnavy at bestpractical.com
Tue Oct 20 12:06:31 EDT 2015


This is an automated email from the git hooks/post-receive script.

sunnavy pushed a commit to branch 3.4/reimplement-constituencies
in repository rtir.

commit 9c90ec5232dff2bba23262bc52450a8ac1cca050
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Wed Apr 10 12:43:26 2013 -0400

    Allow sorting on Show Children pages
    
    We have to pass through id, Queue, Statuses and SelectedTickets, so that
    either means hardcoding those 4 in Elements/ShowChildren or passing
    %ARGS around a lot and controlling with PassArguments.
---
 html/RTIR/Elements/ShowChildren        | 6 ++++++
 html/RTIR/Incident/Children/index.html | 3 +++
 2 files changed, 9 insertions(+)

diff --git a/html/RTIR/Elements/ShowChildren b/html/RTIR/Elements/ShowChildren
index 33e80cf..a76ea44 100644
--- a/html/RTIR/Elements/ShowChildren
+++ b/html/RTIR/Elements/ShowChildren
@@ -57,6 +57,7 @@
 <i><% loc("Check box to unlink") %></i><br />
 % }
 <& /Elements/CollectionList,
+   %ARGS,
    Collection     => $children,
    DisplayFormat  => ($Delete? "__CheckBox__, $Format": $Format),
    Format         => $Format,
@@ -64,6 +65,8 @@
    ShowHeader     => $ShowHeader,
    OrderBy        => $OrderBy,
    ShowNavigation => 0,
+   AllowSorting   => $AllowSorting,
+   PassArguments  => $PassArguments,
 &>
 % unless( $children->Count ) {
 %   if ( $NoTicketsCaption ) {
@@ -114,4 +117,7 @@ $NoTicketsCaption => undef,
 
 $ShowHeader => 0
 $ShowStatusesSelector => 0
+
+$AllowSorting => undef
+$PassArguments => undef
 </%ARGS>
diff --git a/html/RTIR/Incident/Children/index.html b/html/RTIR/Incident/Children/index.html
index f81a9c9..0598e35 100644
--- a/html/RTIR/Incident/Children/index.html
+++ b/html/RTIR/Incident/Children/index.html
@@ -61,6 +61,7 @@
 <input type="hidden" name="Lifecycle" value="<% $Lifecycle %>" />
 
 <& /RTIR/Elements/ShowChildren,
+    %ARGS,
     Ticket               => $Incident,
     Lifecycle            => $Lifecycle,
     Statuses             => [@Statuses],
@@ -68,6 +69,8 @@
     Delete               => $delete,
     ShowHeader           => 1,
     ShowStatusesSelector => 1,
+    AllowSorting         => 1,
+    PassArguments        => [qw(Query Format Rows Page Order OrderBy Queue id SelectedTicekts Statuses)],
 &>
 
 <& /Elements/Submit, Name => 'Unlink', Label => loc('Unlink Report') &>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list