cubicweb #714766 [formwidgets] field value get replaced by another (inlined forms) [resolved]

diff:

diff --git a/web/formwidgets.py b/web/formwidgets.py
--- a/web/formwidgets.py
+++ b/web/formwidgets.py
@@ -97,18 +97,9 @@
         return self.values(form, field), attrs

    def values(self, form, field):
-        qname = field.input_name(form, self.suffix)
-        if qname in form.form_previous_values:
-            values = form.form_previous_values[qname]
-        elif qname in form._cw.form:
-            values = form._cw.form[qname]
-        elif field.name != qname and field.name in form._cw.form:
-            # compat: accept attr=value in req.form to specify value of attr-subject
-            values = form._cw.form[field.name]
-        else:
-            values = self.typed_value(form, field)
-            if values != INTERNAL_FIELD_VALUE:
-                values = self.format_value(form, field, values)
+        values = self.typed_value(form, field)
+        if values != INTERNAL_FIELD_VALUE:
+            values = self.format_value(form, field, values)
         if not isinstance(values, (tuple, list)):
             values = (values,)
         return values

the obscure logic above is the likely cause

priorityimportant
typebug
done in3.6.1
load0.500
load left0.000
closed by<not specified>