Revision 257

Date:
2012/11/06 12:32:55
Author:
ahitrov
Revision Log:
Default sort order
Files:

Legend:

 
Added
 
Removed
 
Modified
  • utf8/plugins/webshop/lib/webshop/SQL/Order.pm

     
    174 174 }
    175 175
    176 176 ########### FILTERS DESCRIPTION ###############################################################################
    177 sub _get_orders {
    178 my ($self, %opts) = @_;
    179
    180 if ($opts{order_by}) {
    181 return ' order by '.$opts{order_by};
    182 } else {
    183 return ' order by id desc';
    184 }
    185 return undef;
    186 }
    187
    177 188 sub _uid_filter {
    178 189 my ($self,%opts)=@_;
    179 190 return undef unless ( exists $opts{uid} );