Commit cd8b24dd authored by Romain Courteaud's avatar Romain Courteaud

Simplify content edition.

parent 77749537
......@@ -125,10 +125,7 @@
for (key in metadata) {
if (metadata.hasOwnProperty(key)) {
if (key !== "_id") {
// Hardcoded my_ ERP5 behaviour
if (renderer_form.hasOwnProperty("my_" + key)) {
data.append(renderer_form["my_" + key].key, metadata[key]);
}
data.append(key, metadata[key]);
}
}
}
......
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