Changeset 1500


Ignore:
Timestamp:
Sep 29, 2010, 3:54:43 AM (10 years ago)
Author:
roux
Message:

correction bug solr 1 day -> 2 days

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/solr/actions/actions.class.php

    r1488 r1500  
    131131        $date = array_pop($dates);
    132132        $period = 'MONTH';
    133         if (count($dates) == 1)
     133        if (count($dates) == 1) {
    134134          $period = 'DAY';
    135         $query .= ' date:['.$date.' TO '.$date.'+1'.$period.']';
     135          $query .= ' date:['.$date.' TO '.$date.']';
     136        } else $query .= ' date:['.$date.' TO '.$date.'+1'.$period.']';
    136137        $params['facet.date.start']=$date;
    137138        $params['facet.date.end'] = $date.'+1'.$period;
Note: See TracChangeset for help on using the changeset viewer.