Skip to content

Commit

Permalink
Merge branch 'fb_headless' of https://github.com/zms-publishing/ZMS i…
Browse files Browse the repository at this point in the history
…nto fb_headless
  • Loading branch information
zmsdev committed Jul 17, 2023
2 parents 2a58a8a + 4a1b8ec commit 145cd15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Products/zms/rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def __call__(self, REQUEST=None, **kw):
if context.meta_type == 'ZMSIndex':
data = []
catalog = context.get_catalog()
q = {k:v for k,v in REQUEST.form.items()}
l = catalog(REQUEST.form)
q = {k:v for k,v in REQUEST.form.items() if v is not ''}
l = catalog(q)
data = [{item_name:r[item_name] for item_name in catalog.schema()} for r in l]
elif context.meta_type == 'ZMSMetamodelProvider':
data = {}
Expand Down

0 comments on commit 145cd15

Please sign in to comment.