Ticket #447: 447-jDao-selectfirst-groupby.diff

File 447-jDao-selectfirst-groupby.diff, 0.6 kB (added by Julien, 8 months ago)
  • lib/jelix/dao/jDaoMethod.class.php

    old new  
    127127        } 
    128128 
    129129        if(strlen($params['groupby'])){ 
    130             if($this->type == 'select'){ 
     130            if($this->type == 'select' || $this->type == 'selectfirst'){ 
    131131                $this->_groupBy = preg_split("/[\s,]+/", $params['groupby']); 
    132132                $props = $this->_def->getProperties(); 
    133133                foreach($this->_groupBy as $p){ 
Download in other formats: Original Format