Commit c497da3b authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_web_renderjs_ui: check url's value before create an input

parent 4b9f0fac
...@@ -333,9 +333,10 @@ promiseEventListener */\n ...@@ -333,9 +333,10 @@ promiseEventListener */\n
.declareMethod(\'render\', function (options) {\n .declareMethod(\'render\', function (options) {\n
var gadget = this,\n var gadget = this,\n
i,\n i,\n
url_list = options.field_json.relation_item_relative_url,\n
value_list = options.field_json.value || options.field_json.default;\n value_list = options.field_json.value || options.field_json.default;\n
gadget.props.field_json = options.field_json || {};\n gadget.props.field_json = options.field_json || {};\n
for (i = 0; i < value_list.length; i += 1) {\n for (i = 0; i < value_list.length && url_list[i] !== undefined; i += 1) {\n
gadget.props.select_uid_list[i] = options.field_json.relation_item_uid[i];\n gadget.props.select_uid_list[i] = options.field_json.relation_item_uid[i];\n
createSingleRelationField(gadget, i, true);\n createSingleRelationField(gadget, i, true);\n
}\n }\n
...@@ -669,7 +670,7 @@ promiseEventListener */\n ...@@ -669,7 +670,7 @@ promiseEventListener */\n
</item> </item>
<item> <item>
<key> <string>actor</string> </key> <key> <string>actor</string> </key>
<value> <string>xiaowu</string> </value> <value> <string>zope</string> </value>
</item> </item>
<item> <item>
<key> <string>comment</string> </key> <key> <string>comment</string> </key>
...@@ -683,7 +684,7 @@ promiseEventListener */\n ...@@ -683,7 +684,7 @@ promiseEventListener */\n
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>943.17846.21046.5051</string> </value> <value> <string>943.18921.17173.42154</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -701,7 +702,7 @@ promiseEventListener */\n ...@@ -701,7 +702,7 @@ promiseEventListener */\n
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1432631007.67</float> <float>1433493223.96</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </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