Commit aafc5a61 authored by Georgios Dagkakis's avatar Georgios Dagkakis

erp5_web_renderjs_ui: Cells of value should be correctly rendered in Listbox

parent f07ebe82
......@@ -26,6 +26,7 @@
<script src="rsvp.js" type="text/javascript"></script>
<script src="renderjs.js" type="text/javascript"></script>
<script src="jiodev.js" type="text/javascript"></script>
<script src="gadget_global.js" type="text/javascript"></script>
<!-- custom script -->
<script src="gadget_erp5_field_listbox.js" type="text/javascript"></script>
......
......@@ -224,7 +224,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
<value> <string>george</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -238,7 +238,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>972.60114.22488.50688</string> </value>
<value> <string>986.65426.46809.56012</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -256,7 +256,7 @@
</tuple>
<state>
<tuple>
<float>1547457320.7</float>
<float>1601544175.96</float>
<string>UTC</string>
</tuple>
</state>
......
/*jslint indent: 2, maxerr: 3, nomen: true */
/*global window, document, rJS, URI, RSVP, console*/
(function (window, document, rJS, URI, RSVP, console) {
/*global window, document, rJS, URI, RSVP, isEmpty, console*/
(function (window, document, rJS, URI, RSVP, isEmpty, console) {
"use strict";
var variable = {},
......@@ -964,7 +964,8 @@
for (i = 0; i < counter; i += 1) {
cell_list = [];
for (j = 0; j < column_list.length; j += 1) {
value = allDocs_result.data.rows[i].value[column_list[j][0]] || "";
value = allDocs_result.data.rows[i].value[column_list[j][0]];
value = isEmpty(value) ? '' : value;
//url column
// get url value
if (value.url_value) {
......@@ -1422,4 +1423,4 @@
return;
});
}(window, document, rJS, URI, RSVP, console));
}(window, document, rJS, URI, RSVP, isEmpty, console));
......@@ -226,7 +226,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
<value> <string>george</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -240,7 +240,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>981.52223.62350.51473</string> </value>
<value> <string>986.62778.43816.35430</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -258,7 +258,7 @@
</tuple>
<state>
<tuple>
<float>1581523438.08</float>
<float>1601472016.81</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