Commit d9074df2 authored by Roque's avatar Roque

erp5_officejs: fixing category on text editor custom action

parent 8c4913fa
...@@ -16,13 +16,13 @@ ...@@ -16,13 +16,13 @@
<key> <string>categories</string> </key> <key> <string>categories</string> </key>
<value> <value>
<tuple> <tuple>
<string>action_type/object_action</string> <string>action_type/object_jio_js_script</string>
</tuple> </tuple>
</value> </value>
</item> </item>
<item> <item>
<key> <string>category</string> </key> <key> <string>category</string> </key>
<value> <string>object_action</string> </value> <value> <string>object_jio_js_script</string> </value>
</item> </item>
<item> <item>
<key> <string>condition</string> </key> <key> <string>condition</string> </key>
......
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
form_type = 'dialog'; form_type = 'dialog';
child_gadget_url = 'gadget_erp5_pt_form_dialog.html'; child_gadget_url = 'gadget_erp5_pt_form_dialog.html';
break; break;
case 'object_action': case 'object_jio_js_script':
form_type = 'dialog'; form_type = 'dialog';
child_gadget_url = 'gadget_erp5_pt_form_dialog.html'; child_gadget_url = 'gadget_erp5_pt_form_dialog.html';
break; break;
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
child_gadget_url = form_info[1], child_gadget_url = form_info[1],
//an action form must have a GadgetField called "gadget_field_new_action_js_script" //an action form must have a GadgetField called "gadget_field_new_action_js_script"
//this gadget will point the custom action gadget //this gadget will point the custom action gadget
valid_action = form_definition.action_type === "object_action" && valid_action = form_definition.action_type === "object_jio_js_script" &&
form_definition.fields_raw_properties.hasOwnProperty("gadget_field_action_js_script"), form_definition.fields_raw_properties.hasOwnProperty("gadget_field_action_js_script"),
state_options = { state_options = {
doc: {}, doc: {},
......
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