You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although the DB is updated correctly the return'd HTML from the POST shows (none) until you refresh the screen
When clicking "Link Existing" it makes 2 calls to set the relationship, the first one consistently shows (none) the second can be more of a race condition.
The text was updated successfully, but these errors were encountered:
this appears to be caused by https://github.com/silvershop/silverstripe-hasonefield/blob/main/client/src/legacy/hasonefield.js#L7-L12 there are two network requests called onclick, the code here to refresh the gridfield often executes before the database is updated with the new relation. a crude fix is adding a timeout sufficient for the other request to complete, maybe there is a better JS event that should be used instead of onclick
Although the DB is updated correctly the return'd HTML from the
POST
shows(none)
until you refresh the screenWhen clicking "Link Existing" it makes 2 calls to set the relationship, the first one consistently shows
(none)
the second can be more of a race condition.The text was updated successfully, but these errors were encountered: