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.
Problem/Motivation
I'm installing the module as part of an installation profile of a distribution. Because it is now always flagging the node access rebuild in view_unpublished_install()
, the very first thing the people see after installing my distribution is the false error message that they need to rebuild access permissions. This is not even true since there is no content available in the site at this point.
Proposed resolution
Check if there is actually unpublished content available in the database before flagging the error.
Remaining tasks
Implement the fix.
User interface changes
One less error message for the administrators to worry about.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#3 | view_unpublished_better_install-2837685-3.patch | 914 bytes | DuaelFr |
Comments
Comment #2
amaria CreditAttribution: amaria commentedFeel free to create a patch for this.
Comment #3
DuaelFrThere you go :)
Note: a better name for the helper function is welcome
Comment #4
claudiu.cristeaComment #6
amaria CreditAttribution: amaria commentedThanks. I committed this, so marking as fixed. Although, I still got the message to rebuild when I had no unpublished nodes. But I was installing/uninstalling a lot so it could just be me :) However, if you're still having issues, feel free to re-open with details.