Skip to content

Commit

Permalink
TMS-1075: events-list query fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eebbi committed Oct 24, 2024
1 parent ef12ca9 commit 07cd32b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning][semver].

## [Unreleased]

- TMS-1075: Redipress 2 query fix

## [1.3.1] - 2024-04-18

- TMS-1024: Add text after recurring manual event dates
Expand Down
20 changes: 12 additions & 8 deletions src/Models/page-combined-events-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,19 @@ protected function get_manual_events() : array {
'posts_per_page' => 200, // phpcs:ignore
'meta_query' => [
'relation' => 'AND',

Check warning on line 140 in src/Models/page-combined-events-list.php

View workflow job for this annotation

GitHub Actions / phpcs-check

Array double arrow not aligned correctly; expected 15 space(s) between "'relation'" and double arrow, but found 1.
[
'key' => 'end_datetime',
'value' => date( 'Y-m-d' ),
'compare' => '>=',
'type' => 'DATE',
'end_date_clause' => [

Check warning on line 141 in src/Models/page-combined-events-list.php

View workflow job for this annotation

GitHub Actions / phpcs-check

Array double arrow not aligned correctly; expected 8 space(s) between "'end_date_clause'" and double arrow, but found 1.
[
'key' => 'end_datetime',
'value' => date( 'Y-m-d' ),
'compare' => '>=',
'type' => 'DATE',
],
],
[
'key' => 'recurring_event',
'value' => 0,
'recurring_event_clause' => [
[
'key' => 'recurring_event',
'value' => 0,
],
],
],
];
Expand Down

0 comments on commit 07cd32b

Please sign in to comment.