[Alba-desarrollo] SVN Alba r4057 - prosistem/alba/trunk/alba/apps/principal/modules/alumno/actions

commits en pressenter.com.ar commits en pressenter.com.ar
Vie Ene 19 19:44:51 CET 2007


Author: ftoledo
Date: 2007-01-19 15:44:50 -0300 (Fri, 19 Jan 2007)
New Revision: 4057

Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/alumno/actions/actions.class.php
Log:
orden alfabetico por defecto

Modified: prosistem/alba/trunk/alba/apps/principal/modules/alumno/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/alumno/actions/actions.class.php	2007-01-19 00:05:51 UTC (rev 4056)
+++ prosistem/alba/trunk/alba/apps/principal/modules/alumno/actions/actions.class.php	2007-01-19 18:44:50 UTC (rev 4057)
@@ -100,9 +100,9 @@
 
   }
     protected function addSortCriteria (&$c) {                                                                                                                          
-        if ($sort_column = $this->getUser()->getAttribute('sort', null, 'sf_admin/alumno/sort')) {                                                                                                                        
+        if ($sort_column = $this->getUser()->getAttribute('sort', 'apellido', 'sf_admin/alumno/sort')) {                                                                                                                        
             $sort_column = Propel::getDB($c->getDbName())->quoteIdentifier($sort_column);                                          
-            if ($this->getUser()->getAttribute('type', null, 'sf_admin/alumno/sort') == 'asc') {                                                                                                                      
+            if ($this->getUser()->getAttribute('type', 'asc', 'sf_admin/alumno/sort') == 'asc') {                                                                                                                      
                 $c->addAscendingOrderByColumn($sort_column);                                                                         
             }                                                                                                                      
             else {                                                                                                                      




Más información sobre la lista de distribución Alba-desarrollo