Development

Changeset 9908

You must first sign up to be able to contribute.

Changeset 9908

Show
Ignore:
Timestamp:
06/27/08 00:27:19 (5 years ago)
Author:
dwhittle
Message:

sfPropelPlugin: fixed sort criteria case sensitivity (relates to #1286)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfPropelPlugin/branches/1.3/data/generator/sfPropelAdmin/default/template/actions/actions.class.php

    r9877 r9908  
    481481    { 
    482482      // camelize lower case to be able to compare with BasePeer::TYPE_PHPNAME translate field name 
    483       $sort_column = <?php echo $this->getClassName() ?>Peer::translateFieldName($sort_column, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_COLNAME); 
    484  
     483      $sort_column = <?php echo $this->getClassName() ?>Peer::translateFieldName(sfInflector::camelize(strtolower($sort_column)), BasePeer::TYPE_PHPNAME, BasePeer::TYPE_COLNAME); 
    485484      if ($this->getUser()->getAttribute('type', null, 'sf_admin/<?php echo $this->getSingularName() ?>/sort') == 'asc') 
    486485      {