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.
The "Optionally schedule a date and time for publication" functionality seems to not do anything for me. When I enter 'now' it does not publish the new revision that is created. If I go edit the newly created revision, the value for this field is now empty as well.
Comment | File | Size | Author |
---|---|---|---|
#5 | revisioning_scheduler_weight_sync.patch | 2.06 KB | khaldoon_masud |
Comments
Comment #1
graindor CreditAttribution: graindor commentedAgree with zhuber.
It does work when using it for new content but not for revisions.
In some rare occasions, it did work for revisions and I could see the text that mentions that the revision was scheduled on date hour in the tab revision operations.
However, I could not determine why it suddenly worked once and then not anymore (without changing anything in the settings). As a workaround, I always have to click on the revision, go to the publish tab and then schedule it from there. I also disabled the dependency to require permissions to publish and also enabled auto publishing so my settings should be OK.
Thanks for looking into this issue.
Comment #2
khaldoon_masud CreditAttribution: khaldoon_masud commentedrevisioning_scheduler's node_presave hook is being called before revisioning's node_presave hook, because revisioning module weight is higher than revisioning_scheduler module weight. revisioning_scheduler module weight should be equal to or greater than revisioning module weight. Attached patch should fix this problem.
Comment #3
RdeBoerThanks for the patch khaldoon!
Rik
Comment #4
khaldoon_masud CreditAttribution: khaldoon_masud commentedPlease find the improved patch with hook_requirements and dynamic weight adjustment.
-- Thanks!
Comment #5
khaldoon_masud CreditAttribution: khaldoon_masud commentedImproved it more.