Commit 9a54d98d authored by Romain Courteaud's avatar Romain Courteaud

erp5_web_renderjs_ui: fix multilist field notification when a value is dropped

parent 49e7520d
......@@ -145,7 +145,12 @@
var gadget = this,
sub_gadget;
return gadget.getDeclaredGadget(scope)
// Propage the notification before maybe dropping the subgadget
// which will cancel the current call
return gadget.notifyChange("change")
.push(function () {
return gadget.getDeclaredGadget(scope);
})
.push(function (result) {
sub_gadget = result;
return sub_gadget.getContent();
......@@ -162,9 +167,6 @@
gadget.element.removeChild(sub_gadget.element);
}
}
})
.push(function () {
return gadget.notifyChange();
});
})
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>986.32404.49746.11571</string> </value>
<value> <string>999.26016.41426.50124</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1609253179.35</float>
<float>1649347332.58</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