Commit 27d7aa2f authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_web_renderjs_ui: display graph title properly

parent 886f713e
......@@ -1288,19 +1288,18 @@
domain_list.push(domain);
}
}
for (i = 0; i < option_list.length; i += 1) {
if (option_list[i][0].indexOf("_state") !== -1) {
group_by = option_list[i][0];
group_by_title = option_list[i][1];
}
}
for (i = 0; i < domain_list.length; i += 1) {
if (domain_list[i].domain_id === gadget.state.graphic_type) {
for (j = 0; j < option_list.length; j += 1) {
if (option_list[j][0] === gadget.state.graphic_type) {
group_by_title = option_list[j][1];
}
}
return graphic_gadget.render({
jio_key: gadget.state.jio_key,
group_by: group_by,
query_by: {},
title: gadget.state.title,
title: group_by_title,
list_method_template: gadget.state.list_method_template,
list_method: gadget.state.list_method,
layout: {
......
......@@ -228,7 +228,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>ERP5TypeTestCase</string> </value>
<value> <string>zope</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -242,7 +242,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1006.49813.52078.33996</string> </value>
<value> <string>1007.5849.9718.43042</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -262,7 +262,7 @@
</tuple>
<state>
<tuple>
<float>1677704743.9</float>
<float>1678989684.55</float>
<string>UTC</string>
</tuple>
</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