Commit 2388b36a authored by Arnaud Fontaine's avatar Arnaud Fontaine

Fix recording of the property when a Component is modified.

Checking the validation state is not enough as the validated value (save
through RecordablePropertyMixin) should never be overriden even when a
Component in modified state is saved and still contain errors.
parent ecbfe8e1
......@@ -71,7 +71,8 @@ class RecordablePropertyMetaClass(ExtensionClass):
The recorded property will be used upon loading the Component whereas
the new value set is displayed in Component view.
"""
if self.getValidationState() in ('modified', 'validated'):
if (self.getValidationState() == 'modified' and
not self.isPropertyRecorded(property_name)):
self.recordProperty(property_name)
return getattr(super(ComponentMixin, self), accessor_name)(property_value)
......
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