Date filters are wrong, as it could be tested in view-edit preview.

Comments

rodrigobb’s picture

It happens in -dev vertion (defined as '+0 hours') and in -alpha5 version (defined as 'date(DATE_FORMAT_DATETIME)')

I'm using >> Views 6.x-2.11

rodrigobb’s picture

Title: Currently occupied and upconming doesn't work » Currently occupied and upcoming doesn't work
rodrigobb’s picture

I've already fixed this too.

In publicbookings.views_default.inc (1001 and more):

$handler->override_option('filters', array(
    'start' => array(
      'operator' => '>=',
      'value' => array(
        'type' => 'offset',          <================= was 'date'
        'value' => '+0 hours',
        'min' => '',
        'max' => '',
      ),
      'group' => '0',
      'exposed' => FALSE,
      'expose' => array(
        'operator' => FALSE,
        'label' => '',
      ),
      'id' => 'start',
      'table' => 'bookings_schedules',
      'field' => 'start',
      'relationship' => 'none',
    ),

And similar for 'end' (476 and 1021)

Anonymous’s picture

Thanks :)

Would you mind dropping me a mail via the contact form?