Ignore:
Timestamp:
Nov 30, 2009, 9:41:11 PM (14 years ago)
Author:
nikrou
Message:

Feature 1255 :
sql functions for calendar (interval, year, month, ...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_calendar.inc.php

    r4385 r4398  
    259259  if ($must_show_list)
    260260  {
    261     $query = 'SELECT id';
     261    $query = 'SELECT DISTINCT id '.get_extra_fields($conf['order_by']);
     262    $query .= ','.$calendar->date_field;
    262263    $query .= $calendar->inner_sql.'
    263264  '.$calendar->get_date_where();
Note: See TracChangeset for help on using the changeset viewer.