[Rt-commit] r11830 - rt/branches/3.8-TESTING/html/Ticket/Graphs

ruz at bestpractical.com ruz at bestpractical.com
Tue Apr 22 19:41:39 EDT 2008


Author: ruz
Date: Tue Apr 22 19:41:37 2008
New Revision: 11830

Modified:
   rt/branches/3.8-TESTING/html/Ticket/Graphs/index.html

Log:
* use Search/Elements/EditSearches instead of widget from 3.6

Modified: rt/branches/3.8-TESTING/html/Ticket/Graphs/index.html
==============================================================================
--- rt/branches/3.8-TESTING/html/Ticket/Graphs/index.html	(original)
+++ rt/branches/3.8-TESTING/html/Ticket/Graphs/index.html	Tue Apr 22 19:41:37 2008
@@ -67,12 +67,13 @@
     AllowAdditionalProperties => $Type eq 'Links'? 0 : 1,
 &>
 
+<input type="hidden" class="hidden" name="SavedSearchId" value="<% $saved_search->{Id} %>" />
 <& /Search/Elements/EditSearches,
-    Title => loc('Manage saved graphs'),
-    Id => $saved_search->{SearchId},
-    Type => $saved_search->{SearchType},
-    CurrentSearch => $saved_search->{CurrentSearch},
-    AllowCopy => 0,
+    %$saved_search,
+    Title         => loc('Manage saved graphs'),
+    SearchFields   => \@save_arguments,
+    CurrentSearch => { map { $_ => $ARGS{$_} } @save_arguments },
+    AllowCopy     => 0,
 &>
 </form>
 
@@ -86,11 +87,13 @@
 foreach my $level ( 0 .. 6 ) {
     push @save_arguments, "Level-". $level ."-Properties";
 }
-my $saved_search = $m->comp( '/Widgets/SavedSearch:new',
-    SearchType   => 'Graph',
+my $saved_search = { Type => 'Graph' };
+push @results, $m->comp( '/Search/Elements/EditSearches:Init',
+    %ARGS,
+    Query        => \%ARGS,
+    SavedSearch  => $saved_search,
     SearchFields => \@save_arguments,
 );
-push @results, $m->comp( '/Widgets/SavedSearch:process', args => \%ARGS, self => $saved_search );
 
 my $id = $ARGS{'id'};
 my $ticket = LoadTicket( $id );


More information about the Rt-commit mailing list