From d21cc36df06dda73de8bf158024d7fb44eab5681 Mon Sep 17 00:00:00 2001 From: Awilum Date: Wed, 9 Oct 2019 00:37:01 +0300 Subject: [PATCH] fix(core): Entries API - fix Collection Undefined Index(s) for fetchAll method #243 feat(core): Entries API - improve and_where & or_where for fetchAll method #242 BREAKING CHANGES Changed and_where & or_where execution in the templates FROM ``` 'and_where': { } 'or_where': { } ``` TO ``` 'and_where': [ { } ] 'or_where': [ { } ] ``` --- site/themes/default/templates/blog.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/site/themes/default/templates/blog.html b/site/themes/default/templates/blog.html index f72f62e2..ad6ca27f 100644 --- a/site/themes/default/templates/blog.html +++ b/site/themes/default/templates/blog.html @@ -38,11 +38,13 @@ 'expr': 'contains', 'value': tag }, - 'and_where': { - 'key': 'visibility', - 'expr': 'nin', - 'value': ['draft', 'hidden'] - }, + 'and_where': [ + { + 'key': 'visibility', + 'expr': 'nin', + 'value': ['draft', 'hidden'] + } + ], 'order_by': { 'field': 'published_at', 'direction': 'desc'