Commit a0782842 authored by Gabriel Monnerat's avatar Gabriel Monnerat Committed by Jérome Perrin

erp5_officejs_support_request_ui: Search action dynamically according to the...

erp5_officejs_support_request_ui: Search action dynamically according to the action category defined on web site

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 db2342ca
......@@ -20,7 +20,7 @@
result = new Array(name.length);
for (iname = 0; iname < name.length; iname += 1) {
for (iaction = 0; iaction < action_object.length; iaction += 1) {
if (name[iname] === action_object[iaction].name) {
if (action_object[iaction].name.indexOf(name[iname]) !== -1) {
result[iname] = action_object[iaction];
break;
}
......
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