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.
How to duplicate:
Have a field on typeA that has a node reference field to typeB with create enabled for node relationships
Have a role that can create type typeA but not typeB
Tab displays to create and reference, clicking on it leads to 404.
Patch adds logic to make sure there's at least one type that can be referenced for that field.
Comment | File | Size | Author |
---|---|---|---|
node_relationship_access_to_tabs.patch | 1.34 KB | hefox |
Comments
Comment #1
hefox CreditAttribution: hefox commented*Scowl* Fixing title
Comment #2
ice5nake CreditAttribution: ice5nake commented+1 for this to get fixed. I am noticing it as well.
Comment #3
markus_petrux CreditAttribution: markus_petrux commentedSo.. is this RTBC?
Comment #4
ice5nake CreditAttribution: ice5nake commentedI didn't test this patch, but I will.
Comment #5
ice5nake CreditAttribution: ice5nake commentedI keep getting the following when I run sudo patch < node_relationship_access_to_tabs.patch from the directory that the patch and the file are in.
Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/noderelationships/noderelationships.pages.inc' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/includes/theme.inc on line 291
I get this message on every Drupal page once I run the "cache clear" function.
Probably something dumb.
Comment #6
ice5nake CreditAttribution: ice5nake commentedOK, so I manually applied the patch and it is working as described.
Thanks hefox.