Commit de52da9f authored by Roque's avatar Roque

erp5_officejs: minor fix in discussion tool form links

parent 12a395e1
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
}, },
action: "Base_edit", action: "Base_edit",
update_action: "", update_action: "",
_links: {} _links: { "type": { name: "" } }
}, },
form_json = { form_json = {
erp5_document: { erp5_document: {
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
field_info["default"] = gadget.state.doc[element_id]; field_info["default"] = gadget.state.doc[element_id];
} }
form_json.erp5_document._embedded._view[my_element] = field_info; form_json.erp5_document._embedded._view[my_element] = field_info;
form_json.erp5_document._links = form_definition._links;
} }
} }
return form_json; return form_json;
...@@ -90,7 +91,6 @@ ...@@ -90,7 +91,6 @@
.declareMethod("render", function () { .declareMethod("render", function () {
var gadget = this; var gadget = this;
return new RSVP.Queue() return new RSVP.Queue()
.push(function () { .push(function () {
return RSVP.all([ return RSVP.all([
......
...@@ -269,7 +269,7 @@ ...@@ -269,7 +269,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>973.25050.40927.26658</string> </value> <value> <string>973.29145.11643.18193</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -287,7 +287,7 @@ ...@@ -287,7 +287,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1549040323.25</float> <float>1549286006.65</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -53,20 +53,7 @@ ...@@ -53,20 +53,7 @@
}, },
action: "Base_edit", action: "Base_edit",
update_action: "", update_action: "",
_links: { _links: {}
action_object_delete_action: {
href: "https://somewhere.com/",
icon: "",
name: "delete action name",
title: "Delete action title"
},
action_object_search: {
href: "https://somewhere.com/",
icon: "",
name: "search action name",
title: "Search action title"
} //etc
}
}, },
form_json = { form_json = {
erp5_document: { erp5_document: {
...@@ -87,6 +74,7 @@ ...@@ -87,6 +74,7 @@
field_info["default"] = gadget.state.doc[element_id]; field_info["default"] = gadget.state.doc[element_id];
} }
form_json.erp5_document._embedded._view[my_element] = field_info; form_json.erp5_document._embedded._view[my_element] = field_info;
form_json.erp5_document._links = form_definition._links;
} }
} }
return form_json; return form_json;
......
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>973.24979.41047.29781</string> </value> <value> <string>973.29142.36243.7697</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1549036257.66</float> <float>1549285941.45</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
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