Issue with noderelationships_noderef_page_create when there is only one of two or more content types that can be referenced by the current user because of permissions. The page is redirected to the type that the user does not have permissions to edit, and the list of add node links are not displayed because the $node_add_list only has one value in it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kmadel’s picture

Status: Active » Needs review
FileSize
1.77 KB

I just added a temporary variable that keeps track of the previous $new_type that will be used in all but one $new_type is not a $creatable_types. This will take the user directly to the node/add form for that type.

kmadel’s picture

Assigned: kmadel » Unassigned
stevehuk’s picture

The patch in #1 worked for me to solve this problem. Thanks kmadel.