I'm describing a probably harmless but definitely bad interaction between book and relativity modules.

When creating child book pages for book pages in context (using the 'add child page' link), node relativity module creates a relationship even though (on my site) book pages cannot be parents of other book pages. This allows me to "remove" the book page children from their book page parents, but this has no effect on the outline.

To reproduce this bug, you must have book module and relativity enabled. Relativity must NOT be configured to allow book pages as children of other book pages, however book pages MUST be allowed to participate in node relativity relationships (so that 'book' is returned by the function relativity_node_list).

  1. Navigate to a book page.
  2. click the 'create child page' link
  3. Fill out the form for your new node
  4. Navigate to the parent book page
  5. See that your new book page is now a node relativity child of this node

I think this is happening because line 286 in the relativity_menu function matches the URL used to add child book pages, but no checks are made to see if the relationship is allowed because it's assumed that the path is called from the "create new [type]" link provided by node relativity module.

Comments

tortoise’s picture

I'm getting this issue even though book pages are not configured to be involved in Node Relativity relationships at all. I think this may have come about when I took a node of a Relativity-enabled content type and placed it into an existing book outline. Older book pages do not have the problem of being in a relationship, but newer book pages (presumably those made after I put the Relativity-enabled page into a book outline) do show up as being in relationships.