-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saving with a LinkField can break the CMS in some cases #26
Comments
Is this intermittent, or can you reliably reproduce it on some specific If it's intermittent, then it's hard to tell whether your PR is actually resolving an issue or not, because there's no way for us to test it. If this is still an issue for you I think you'll need to dig down to see if you can find some steps to reliably reproduce the problem. |
It depends how you look at it @GuySartorelli
I created the PR in a project which had this issue, but due to time constraints had to work directly towards a solution and couldn't take the time to investigate the root cause. The changes in my PR are working and resolve the issue in production. I would say my PR isn't strictly a fix for this issue, it is an enhancement to the integrity of |
Version
Issue
In some cases, the instantiated
LinkField
can submit by its unaugmented name and override an object's component with the same name, which causes the CMS to break when saving the record.Steps to reproduce
I'm not sure sadly. All I can observe concretely is that the
LinkField
needs to be used in such a way thatForm::saveInto()
considers it a$dataField
(aka a saveableField)Expected behaviour
The Field never writes data directly to the DataObject on save, because it is a superficial field.
Actual behaviour
The Field writes data to the object on save and overwrites the relation component that shares the same name, causing the CMS to be unable to process with writing the record because the component references are malaligned.
The text was updated successfully, but these errors were encountered: