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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

graindor’s picture

Agree 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.

khaldoon_masud’s picture

FileSize
736 bytes

revisioning_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.

RdeBoer’s picture

Thanks for the patch khaldoon!
Rik

khaldoon_masud’s picture

FileSize
2.08 KB

Please find the improved patch with hook_requirements and dynamic weight adjustment.

-- Thanks!

khaldoon_masud’s picture

FileSize
2.06 KB

Improved it more.