diff options
-rw-r--r-- | src/com/itmill/toolkit/ui/Form.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/itmill/toolkit/ui/Form.java b/src/com/itmill/toolkit/ui/Form.java index 55f0655d15..ecc8ec98cc 100644 --- a/src/com/itmill/toolkit/ui/Form.java +++ b/src/com/itmill/toolkit/ui/Form.java @@ -746,7 +746,9 @@ public class Form extends AbstractField implements Item.Editor, Buffered, Item, throw new IllegalArgumentException("Field with given propertyid '" + propertyId.toString() + "' can not be found."); } - final Object value = oldField.getValue(); + final Object value = oldField.getPropertyDataSource() == null ? oldField + .getValue() + : oldField.getPropertyDataSource().getValue(); // Checks that the value exists and check if the select should // be forced in multiselect mode |