Commit 05d4c9b5 authored by Romain Courteaud's avatar Romain Courteaud

Release version 3.10.2

Contains an ERPStorage fix.
parent 4d69716f
...@@ -8783,7 +8783,8 @@ return new Parser; ...@@ -8783,7 +8783,8 @@ return new Parser;
form_data_json = {}, form_data_json = {},
field, field,
key, key,
prefix_length; prefix_length,
result;
form_data_json.form_id = { form_data_json.form_id = {
"key": [form.form_id.key], "key": [form.form_id.key],
...@@ -8811,11 +8812,15 @@ return new Parser; ...@@ -8811,11 +8812,15 @@ return new Parser;
} }
} }
return { result = {
action_href: form._actions.put.href,
data: converted_json, data: converted_json,
form_data: form_data_json form_data: form_data_json
}; };
if (form.hasOwnProperty('_actions') &&
form._actions.hasOwnProperty('put')) {
result.action_href = form._actions.put.href;
}
return result;
}); });
} }
...@@ -8973,6 +8978,12 @@ return new Parser; ...@@ -8973,6 +8978,12 @@ return new Parser;
} }
} }
} }
if (!result.hasOwnProperty('action_href')) {
throw new jIO.util.jIOError(
"ERP5: can not modify document: " + id,
403
);
}
return context.putAttachment( return context.putAttachment(
id, id,
result.action_href, result.action_href,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
{ {
"name": "jio", "name": "jio",
"version": "v3.10.1", "version": "v3.10.2",
"license": "LGPLv3", "license": "LGPLv3",
"author": "Nexedi SA", "author": "Nexedi SA",
"contributors": [ "contributors": [
......
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