Author: pmacadden
Date: 2010-03-12 18:19:58 +0100 (Fri, 12 Mar 2010)
New Revision: 28513

Modified:
   plugins/dcSwishPlugin/trunk/modules/dc_swish/actions/actions.class.php
Log:
agrego persistencia del query entre acciones

Modified: plugins/dcSwishPlugin/trunk/modules/dc_swish/actions/actions.class.php
===================================================================
--- plugins/dcSwishPlugin/trunk/modules/dc_swish/actions/actions.class.php      
2010-03-12 16:59:12 UTC (rev 28512)
+++ plugins/dcSwishPlugin/trunk/modules/dc_swish/actions/actions.class.php      
2010-03-12 17:19:58 UTC (rev 28513)
@@ -19,6 +19,9 @@
   {
     $this->swish_form = new SwishSearchForm();
 
+    $this->swish_form->setDefault("query", 
$this->getUser()->getAttribute("request_query", ""));
+    $this->getUser()->getAttributeHolder()->remove("request_query");
+
     // sorting
     if ($request->getParameter('sort'))
     {
@@ -38,6 +41,8 @@
 
   public function executeSearch(sfWebRequest $request)
   {
+    $this->getUser()->setAttribute("request_query", 
$request->getParameter("swish[query]"));
+
     $this->setPage(1);
     $this->swish_form = new SwishSearchForm();
     $this->swish_form->bind($request->getParameter('swish'));

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to