Commit eb9dafcc authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] ListField: support first_item parameter

parent 68f7e939
......@@ -16,8 +16,13 @@
editable: field_json.editable,
required: field_json.required,
name: field_json.key,
title: field_json.title
title: field_json.title,
first_item: field_json.first_item
};
if ((!state_dict.value) && (state_dict.first_item)) {
state_dict.value = field_json.items[0][1];
}
return this.changeState(state_dict);
})
......
......@@ -230,7 +230,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>954.38571.58992.44731</string> </value>
<value> <string>954.44644.53233.55825</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>1476437096.88</float>
<float>1476801003.44</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