Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | noderelationships-create_and_reference_page-1042934-1.patch | 1.77 KB | kmadel |
Comments
Comment #1
kmadel CreditAttribution: kmadel commentedI 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.
Comment #2
kmadel CreditAttribution: kmadel commentedComment #3
stevehuk CreditAttribution: stevehuk commentedThe patch in #1 worked for me to solve this problem. Thanks kmadel.