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

Potential incompatibility with NeoMatrix #16

Open
sjenset opened this issue Aug 30, 2017 · 0 comments
Open

Potential incompatibility with NeoMatrix #16

sjenset opened this issue Aug 30, 2017 · 0 comments

Comments

@sjenset
Copy link

sjenset commented Aug 30, 2017

Hi.

Using this plugin on a few sites, and love it.

However, when used on one particular site - which also uses the popular NeoMatrix-plugin - I get a fatal when attempting to save some pages.

This happens because we're trying to access ->owner->uri on $relatedMatrixBlock, and I think it happens because NeoMatrixBlocks don't necessarily have a owner (they can be quite nested).

I've patched my local site by adding a recursive method that cycles through parents until it finds one with a owner (fallback is to just return NULL and not add a URI to the collection) - but I figured I would raise it to your attention.

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