[Rt-commit] r7257 - rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident

ruz at bestpractical.com ruz at bestpractical.com
Fri Mar 16 18:34:15 EDT 2007


Author: ruz
Date: Fri Mar 16 18:34:14 2007
New Revision: 7257

Modified:
   rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/LinkToIncident.html

Log:
* use DisplayFormat for Radio and checkboxes instead of riping them out

Modified: rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/LinkToIncident.html
==============================================================================
--- rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/LinkToIncident.html	(original)
+++ rtir/branches/2.3-EXPERIMENTAL/html/RTIR/Incident/LinkToIncident.html	Fri Mar 16 18:34:14 2007
@@ -42,15 +42,16 @@
 <input type="hidden" name="Child" value="<% $id %>" />
 
 <& /RTIR/Search/Elements/ShowResults, 
-    Queue     => $Queue,
-    BaseQuery => $BaseQuery,
-    Query     => $Query,
-    Format    => '__RTIR_Radio__,'. $Format,
-    Rows      => $Rows,
-    Page      => $Page,
-    OrderBy   => $OrderBy,
-    Order     => $Order,
-    BaseURL   => $current_tab,
+    Queue         => $Queue,
+    BaseQuery     => $BaseQuery,
+    Query         => $Query,
+    DisplayFormat => "__RTIR_Radio__, $Format",
+    Format        => $Format,
+    Rows          => $Rows,
+    Page          => $Page,
+    OrderBy       => $OrderBy,
+    Order         => $Order,
+    BaseURL       => $current_tab,
 &>
 
 <& /Elements/Submit,
@@ -67,9 +68,6 @@
 my $Type = RT::IR::TicketType( Ticket => $ChildObj );
 my $title = loc( "Link [_1] #[_2] to selected Incident", $Type, $id );
 
-# XXX: clear radio, checkboxes from format
-$Format =~ s/__RTIR_(?:Radio|Check)__,//;
-
 my $Queue = 'Incidents';
 my $BaseQuery = $m->comp( '/RTIR/Elements/BaseQuery', Queue => $Queue );
 $BaseQuery = join ' AND ', map "( $_ )", grep $_,


More information about the Rt-commit mailing list