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.
I have a content type with "Enable publishcontent" disabled.
In my view I added the publish-content link, and it shows the 'Unpublish'-link for nodes of this type. When the node is unpublished, there is no 'Publish'-link.
A little if-statement seems missing in the "publishcontent_unpublish_access" function.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2733239-1.patch | 823 bytes | SpadXIII |
|
Comments
Comment #2
SpadXIII CreditAttribution: SpadXIII at ezCompany commentedA little patch that adds the same check in 'publishcontent_unpublish_access'-function as in the 'publishcontent_publish_access'-function