Development

#1286: action.class.patch

You must first sign up to be able to contribute.

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  
    398398  { 
    399399    if ($sort_column = $this->getUser()->getAttribute('sort', null, 'sf_admin/<?php echo $this->getSingularName() ?>/sort')) 
    400400    { 
    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); 
    402403      if ($this->getUser()->getAttribute('type', null, 'sf_admin/<?php echo $this->getSingularName() ?>/sort') == 'asc') 
    403404      { 
    404405        $c->addAscendingOrderByColumn($sort_column);