Commit c33df101 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Do not reuse the same variable name

parent 169f2be0
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
// declared methods // declared methods
///////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////
.declareMethod('render', function (options) { .declareMethod('render', function (options) {
var gadget = this, var context = this,
field_json = options.field_json || {}; field_json = options.field_json || {};
return this.getDeclaredGadget("relation_input") return context.getDeclaredGadget("relation_input")
.push(function (gadget) { .push(function (gadget) {
var render_options = { var render_options = {
editable: field_json.editable, editable: field_json.editable,
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
return gadget.render(render_options); return gadget.render(render_options);
}) })
.push(function () { .push(function () {
return gadget.changeState({ return context.changeState({
key: options.field_json.key, key: options.field_json.key,
relation_field_id: options.field_json.relation_field_id relation_field_id: options.field_json.relation_field_id
}); });
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>955.18006.50413.2645</string> </value> <value> <string>958.19776.55952.3225</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1479293469.27</float> <float>1490691939.14</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