Ticket #1286: action.class.patch
| File action.class.patch, 1.1 kB (added by noel, 2 years ago) |
|---|
-
/home/noel/workspace2/symfony/data/generator/sfPropelAdmin/default/template/actions/actions.class.php
old new 398 398 { 399 399 if ($sort_column = $this->getUser()->getAttribute('sort', null, 'sf_admin/<?php echo $this->getSingularName() ?>/sort')) 400 400 { 401 $sort_column = <?php echo $this->getClassName() ?>Peer::translateFieldName($sort_column, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_COLNAME); 401 $sort_column = sfInflector::camelize(strtolower($sort_column)); 402 $sort_column = <?php echo $this->getClassName() ?>Peer::translateFieldName($sort_column, BasePeer::TYPE_PHPNAME, BasePeer::TYPE_COLNAME); 402 403 if ($this->getUser()->getAttribute('type', null, 'sf_admin/<?php echo $this->getSingularName() ?>/sort') == 'asc') 403 404 { 404 405 $c->addAscendingOrderByColumn($sort_column);