fix filters not working because index null

This commit is contained in:
lenovo
2022-11-12 18:27:45 +01:00
parent 5497ceea0f
commit c140187aa9
5 changed files with 32 additions and 19 deletions

View File

@@ -172,6 +172,7 @@ function mp_get_published_events() {
$event = mp_fill_fields_value($post->ID);
$event->id = $post->ID;
$event->title = trim($post->post_title, " ");
$event->index = null;
array_push($events, $event);
}
return $events;
@@ -190,7 +191,7 @@ function mp_get_published_events() {
- nom : "";
- irl : bool;
- id : x;
(- index : x;) // not there for now
- index : x (default null);
- title : "";
- location : {}
- street : "";