Author: weaverryan
Date: 2010-02-07 15:28:53 +0100 (Sun, 07 Feb 2010)
New Revision: 27640

Modified:
   
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalContentListPlugin/lib/model/doctrine/PluginsfSympalContentList.class.php
Log:
[1.4][sfSympalPlugin][1.0] Fixing a bug. The order was being set with the wrong 
function (setDefaultOrder) or, as I've done here, both can be set with the 
setDefaultSort() function.


Modified: 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalContentListPlugin/lib/model/doctrine/PluginsfSympalContentList.class.php
===================================================================
--- 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalContentListPlugin/lib/model/doctrine/PluginsfSympalContentList.class.php
   2010-02-07 13:58:03 UTC (rev 27639)
+++ 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalContentListPlugin/lib/model/doctrine/PluginsfSympalContentList.class.php
   2010-02-07 14:28:53 UTC (rev 27640)
@@ -32,11 +32,7 @@
 
     if ($this->sort_column) 
     { 
-      $dataGrid->setDefaultSort($this->sort_column);
-      if ($this->sort_order)
-      {
-        $dataGrid->setDefaultSort($this->sort_order);
-      }
+      $dataGrid->setDefaultSort($this->sort_column, $this->sort_order);
     }
 
     $dataGrid->setMaxPerPage(($this->rows_per_page > 0 ? $this->rows_per_page 
: sfSympalConfig::get('rows_per_page', null, 10)));

-- 
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