Commit ebcdec12 authored by Tomáš Peterka's avatar Tomáš Peterka Committed by Tomáš Peterka

[hal_json] Query can be hidden in extra_param_json too

parent da1623d2
...@@ -1148,7 +1148,7 @@ def renderForm(traversed_document, form, response_dict, key_prefix=None, selecti ...@@ -1148,7 +1148,7 @@ def renderForm(traversed_document, form, response_dict, key_prefix=None, selecti
if 'uids' in dialog_method_kwargs: if 'uids' in dialog_method_kwargs:
# If we do not have "query" in the REQUEST but the Dialog Method requires uids # If we do not have "query" in the REQUEST but the Dialog Method requires uids
# then we still should inject empty "query" in the dialog call # then we still should inject empty "query" in the dialog call
extra_param_json["query"] = query or REQUEST.get("query", "") extra_param_json["query"] = query or extra_param_json.get("query", "") or REQUEST.get("query", "")
else: else:
# In form_view we place only form_id in the request form # In form_view we place only form_id in the request form
renderHiddenField(response_dict, 'form_id', form.id) renderHiddenField(response_dict, 'form_id', form.id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment