Commit eb729104 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_officejs_support_request_ui: Avoid hard code action reference

Hard coding to select action_object_view we will never use web site configuration.

If we always get links from action_object_view, Support Request will always break if we change View Action Category on web site.
parent 4705a2fe
...@@ -308,7 +308,7 @@ ...@@ -308,7 +308,7 @@
var erp5_document = result_list[0], var erp5_document = result_list[0],
worklist_gadget = result_list[1], worklist_gadget = result_list[1],
field_listbox_begin_from = result_list[2], field_listbox_begin_from = result_list[2],
view_list = erp5_document._links.action_object_view || []; view_list = erp5_document._links.view || [];
gadget.property_dict.option_dict = { gadget.property_dict.option_dict = {
// graph_gadget: Keep ending slash to be consistent with the automatically set "base" tag // graph_gadget: Keep ending slash to be consistent with the automatically set "base" tag
......
...@@ -232,7 +232,7 @@ ...@@ -232,7 +232,7 @@
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>zope</string> </value> <value> <string>ERP5TypeTestCase</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -265,6 +265,8 @@ ...@@ -265,6 +265,8 @@
<state> <state>
<tuple> <tuple>
<float>1595449693.01</float> <float>1595449693.01</float>
<string>UTC</string>
</tuple>
</state> </state>
</object> </object>
</value> </value>
......
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