diff --git a/config/sync/views.settings.yml b/config/sync/views.settings.yml index c7688f923..4e6d34ff2 100644 --- a/config/sync/views.settings.yml +++ b/config/sync/views.settings.yml @@ -10,7 +10,7 @@ ui: performance_statistics: false preview_information: true sql_query: - enabled: false + enabled: true where: above display_embed: false always_live_preview: true diff --git a/config/sync/views.view.events.yml b/config/sync/views.view.events.yml index 0fe50c1b8..e19281408 100644 --- a/config/sync/views.view.events.yml +++ b/config/sync/views.view.events.yml @@ -1528,8 +1528,8 @@ display: value: min: '' max: '' - value: now - type: offset + value: '' + type: date group: 1 exposed: true expose: @@ -3066,8 +3066,8 @@ display: value: min: '' max: '' - value: now - type: offset + value: '' + type: date group: 1 exposed: true expose: @@ -3379,10 +3379,10 @@ display: plugin_id: datetime operator: between value: - min: now - max: now + min: '' + max: '' value: '' - type: offset + type: date group: 1 exposed: true expose: diff --git a/web/modules/custom/nys_calendar/nys_calendar.module b/web/modules/custom/nys_calendar/nys_calendar.module index f15d077c5..05b658889 100644 --- a/web/modules/custom/nys_calendar/nys_calendar.module +++ b/web/modules/custom/nys_calendar/nys_calendar.module @@ -199,10 +199,7 @@ function nys_calendar_form_views_exposed_form_alter(&$form, FormStateInterface $ if (!isset($default_date)) { $default_date = date('Y') . date('-m-') . '01'; } - if ( - !empty($form_state->getUserInput()['date']) - && $form_state->getUserInput()['date'] === 'now' - ) { + if (empty($form_state->getUserInput()['date'])) { // Ensure default event day and month date filters are set on exposed // form prior to user input. $form['date']['#value'] = $default_date;