Commit ba7c08a4 authored by Tomáš Peterka's avatar Tomáš Peterka

[renderjs_ui] Put back field gadget scope to rendered field key (from just its name)

parent 4ef10552
...@@ -95,14 +95,15 @@ ...@@ -95,14 +95,15 @@
field_element = document.createElement("div"); field_element = document.createElement("div");
return new RSVP.Queue() return new RSVP.Queue()
.push(function () { .push(function () {
var rendered_field_name = rendered_document[field_name].key;
if (modification_dict.hasOwnProperty('hash')) { if (modification_dict.hasOwnProperty('hash')) {
return form_gadget.declareGadget('gadget_erp5_label_field.html', { return form_gadget.declareGadget('gadget_erp5_label_field.html', {
scope: field_name, scope: rendered_field_name, // ugly! Should be just `field_name` but too many tests depend on it
element: field_element, element: field_element,
sandbox: "public" sandbox: "public"
}); });
} }
return form_gadget.getDeclaredGadget(field_name); return form_gadget.getDeclaredGadget(rendered_field_name);
}) })
.push(function (label_gadget) { .push(function (label_gadget) {
if (modification_dict.hasOwnProperty('hash')) { if (modification_dict.hasOwnProperty('hash')) {
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>961.18921.65523.7867</string> </value> <value> <string>961.18982.46006.23483</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>1502264377.31</float> <float>1502268077.5</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