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

Relations not (really) updated on checkin #89

Closed
2silver opened this issue May 19, 2021 · 0 comments
Closed

Relations not (really) updated on checkin #89

2silver opened this issue May 19, 2021 · 0 comments

Comments

@2silver
Copy link
Contributor

2silver commented May 19, 2021

A while ago we run in this issue, if in a WorkingCopy relations changed - the relations (to_id and from_id) are not updated on Check-In

Steps to reproduce:

  • Create a Page "Speaker" and a Page "Talk"
  • Set on "Talk" a "Related Item" to "Speaker"
    • "Related Content" on "Talk" shows now "Speaker"
  • Check-Out "Talk"
    • Edit WC "Talk" and remove "Speaker" from "Related Items"-Widget
  • Check-In WC "Talk"
    • "Related Content" on "Talk" is now empty
  • But the relations in catalog does not change and still exists

I installed collective.relationhelpers for a little help
With /Plone/@@inspect-relations we can simple inspect Relations (cheers to pbauer and contributurs :-) )

After Check-Out "Talk" we can see with "show backrelations" activated
Bildschirmfoto 2021-05-19 um 21 47 19

And without backrelations
Bildschirmfoto 2021-05-19 um 21 48 28

After we saved our WC, Relations are updated as expected.

But after Check-In our WC, Relations are not updated from WC, the original relations are used...
With "Show backrelations" activated
Bildschirmfoto 2021-05-19 um 21 58 51

and without
Bildschirmfoto 2021-05-19 um 21 59 33

Finally, a simple edit and save on our new baseline (Talk) does an update an our relations and everything is fine again :-)

jensens added a commit that referenced this issue May 22, 2021
fix: update relations on Check-In fix #89
sneridagh added a commit that referenced this issue Jun 22, 2021
* master:
  Back to development: 3.3.17
  Preparing release 3.3.16
  chore: add changes message
  chore: black and flake8
  chore: remove debug comment
  fix: update relations on Check-In fix #89
tisto added a commit that referenced this issue Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant