serenity-is / Serenity

Business Apps Made Simple with Asp.Net Core MVC / TypeScript
https://serenity.is
MIT License
2.57k stars 796 forks source link

Fix the error when try the update record without selecting the target linkingset property in LinkingSetRelationBehavior #7135

Closed VictorTomaili closed 2 months ago

VictorTomaili commented 2 months ago

The OnAfterSave method in LinkingSetRelationBehavior.cs now returns if the Target field has not been assigned, preventing potential errors when updating record without selecting the LinkingSetRelation data.

volkanceylan commented 2 months ago

Error is caused by using a row returned from connection extensions which has TrackWithChecks true, closing.