Changeset 7804


Ignore:
Timestamp:
01/30/13 10:26:33 (7 years ago)
Author:
cristiano
Message:

Ticket #3328 - Lista de eventos e tarefas do ExpressoCalendar? não está ordenada adequadamente

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/schedules.php

    r7789 r7804  
    1818class Schedule{ 
    1919 
    20     function findEventsRange( $start, $end, $calendars, $timezones ){ 
     20    function findEventsRange( $start, $end, $calendars, $timezones  ){ 
    2121 
    2222        $sql = 
     
    5757                .'AND calendar_object.dtstart NOT IN (SELECT calendar_repeat_occurrence.occurrence from calendar_repeat_occurrence, ' 
    5858                .'calendar_repeat where (calendar_repeat_occurrence.repeat_id = calendar_repeat.id) ' 
    59                 .'AND (calendar_repeat.object_id = calendar_object.id)) group by calendar_object.id, calendar_to_calendar_object.calendar_id'; 
     59                .'AND (calendar_repeat.object_id = calendar_object.id)) group by calendar_object.id, calendar_to_calendar_object.calendar_id ORDER BY calendar_object.dtstart'; 
    6060 
    6161        $params = Controller::service('PostgreSQL')->execResultSql($sql.$where); 
Note: See TracChangeset for help on using the changeset viewer.