Skip to content

Commit

Permalink
ignore missing values
Browse files Browse the repository at this point in the history
  • Loading branch information
drfho committed Jul 17, 2023
1 parent dd3d931 commit a4e0616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Products/zms/rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ 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()}
q = {k:v for k,v in REQUEST.form.items() if v is not ''}
l = catalog(REQUEST.form)
data = [{item_name:r[item_name] for item_name in catalog.schema()} for r in l]
elif context.meta_type == 'ZMSMetamodelProvider':
Expand Down

0 comments on commit a4e0616

Please sign in to comment.