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 seem to affect each other in odd ways #5636

Closed
SvanteRichter opened this issue Aug 4, 2016 · 1 comment
Closed

Relations seem to affect each other in odd ways #5636

SvanteRichter opened this issue Aug 4, 2016 · 1 comment

Comments

@SvanteRichter
Copy link
Contributor

SvanteRichter commented Aug 4, 2016

Okay this one is a bit odd, so hang with me. Tested on 3.0.11 and master.

To reproduce:

  1. Setup a new bolt install.

  2. Create user and log in.

  3. Prefill the db with a bunch of records.

  4. In the entries contenttype add a relation to entries, the relations block should look something like this:

        relations:
            pages:
              multiple: false
              order: title
              label: Select a page
            entries:
              multiple: false
              order: title
              label: Select an entry
    
  5. Edit one of the entries with a higher id, like 4 or 5.

  6. Set the entry relation to one of the lower id's like 2 and save: image

  7. Reload the page, notice that while the entry relation is saved just fine, under the "This record is related to the following Entries:" it will show that the entry is related to itself. That is oddity no. 1.

  8. Now add a relation to pages with a higher id than the relation you added for entries, but an id that also exists as an entry. For example, lets set the relation to page no. 4 and then save.

  9. Reload the page and see that the entry->entry relation has been set to no. 4 too, even though we did not change it.

  10. If you go to the frontend and dump the record the relations are correct (entries->2, pages->4), but since the preselected relation in the backend is incorrect as soon as one saves the record again it sets both to no. 4 even though entries should have been set to no. 2.

Possibly related to #5541

@GwendolenLynch
Copy link
Contributor

Ah … I think I know what this is!

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

2 participants