konecty / Konecty

Konecty Open source Tech Business Platform
https://konecty.com
GNU Affero General Public License v3.0
19 stars 8 forks source link

Fix: Don't remove inherited fields if it's sent on request #156

Closed 7sete7 closed 3 days ago

7sete7 commented 1 week ago

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).

Fixes #155