1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-24 13:52:56 +02:00

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': [
    {

    }
]
```
This commit is contained in:
Awilum
2019-10-09 00:37:01 +03:00
parent e17e43725e
commit d21cc36df0

View File

@@ -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'