The current behaviour when removing a lookup field from a record (such as development on a Product) is to remove all inheritedFields from it.
The problem is that it removed all the fields even if it was assigned a value on the request as well.
This PR aims to fix it. Keep the fields that came from the request (or other sources, such as the scriptBeforeValidation).
The current behaviour when removing a
lookup
field from a record (such as development on a Product) is to remove allinheritedFields
from it. The problem is that it removed all the fields even if it was assigned a value on the request as well. This PR aims to fix it. Keep the fields that came from the request (or other sources, such as thescriptBeforeValidation
).Fixes #155