Commit 6665ea81 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Fix jio_key definition when call Status Gadget

parent 76974db4
......@@ -25,16 +25,17 @@
var gadget = this;
return gadget.jio_allDocs(param_list[0])
.push(function (result) {
var i, value, len = result.data.total_rows;
var i, value, jio_key_value, len = result.data.total_rows;
for (i = 0; i < len; i += 1) {
if (1 || (result.data.rows[i].value.SoftwareInstance_getNewsDict)) {
value = result.data.rows[i].value.SoftwareInstance_getNewsDict;
jio_key_value = result.data.rows[i].id;
result.data.rows[i].value.SoftwareInstance_getNewsDict = {
field_gadget_param : {
css_class: "",
description: "The Status",
hidden: 0,
"default": {jio_key: value, result: value},
"default": {jio_key: jio_key_value, result: value},
key: "status",
url: "gadget_slapos_instance_status.html",
title: "Status",
......
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