Commit 78e033ac authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

erp5_hal_json_style: accept "boolean" parameter type

Accept string "boolean" to declare a parameter type.
parent 5b3d41bb
......@@ -392,7 +392,7 @@ def parseActionUrl(context_relative_url, url):
param_name, param_type = param_name.split(":")
if param_type == "int":
param_value = int(param_value)
elif param_type == "bool":
elif param_type in ("bool", "boolean"):
param_value = True if param_value.lower() in ("true", "1") else False
elif param_type == "list":
if param_name not in param_dict:
......
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