Skip to content
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

Support Versioned: Publishing relations with LinkField #22

Open
rasmniel opened this issue Nov 18, 2020 · 0 comments
Open

Support Versioned: Publishing relations with LinkField #22

rasmniel opened this issue Nov 18, 2020 · 0 comments

Comments

@rasmniel
Copy link

This issue is somewhat of an appendix to #20, however a slightly different topic, since that issue is related more closely with the Link object rather than the field.

I am experiencing problematic behaviour with the LinkField, causing it to relate the Link object to an Element's incorrect stage version (from dnadesign/silverstripe-elemental)

I have a derived block that I am using with extensions that add extra fields. When saving the Link in the LinkField, these fields are emptied (or rather reset to their initial version when the Element was created)

My procedure is as follows:

  1. Create the Element in question (and publish it for good measure)
  2. Update the values added by the extension
  3. Create a Link object and save this object
  4. Return to the Element, which is now in draft mode
  5. Proceed to discover the values added by the extension are not reset

For this reason we regrettably have agreed to revert to sheadawson's linkable module which does not have this problem. Unfortunately I haven't had the time to look closer into the differences of these two modules, but if someone does, take this post as a hint on where to start.

Apologies for being unable to provide more detailed information at the time of writing. Let me know if I can help anyone to understand the problem better — I don't entirely understand it myself yet.

@rasmniel rasmniel changed the title Supporting Versioned Support Versioned: Publishing with LinkField Nov 18, 2020
@rasmniel rasmniel changed the title Support Versioned: Publishing with LinkField Support Versioned: Publishing relations with LinkField Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant