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

collection2.aggregated_by returns nil until parent is saved #75

Open
elrayle opened this issue Sep 17, 2015 · 0 comments
Open

collection2.aggregated_by returns nil until parent is saved #75

elrayle opened this issue Sep 17, 2015 · 0 comments

Comments

@elrayle
Copy link
Contributor

elrayle commented Sep 17, 2015

To reproduce (with PCDM collections): FAILS...

      collection1.child_collections = [collection2]
      expect(collection2.parent_collections).to eq [collection1]

To reproduce (with PCDM collections): PASSES...

      collection1.child_collections = [collection2]
      collection1.save
      expect(collection2.parent_collections).to eq [collection1]

It fails if you save collection2 instead of collection1.

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