If content has:

  • unpublish enabled,
  • unpublish required,

And has been unpublished by cron, the node is:

  • unpublished,
  • 'Unpublish on' date is empty,

When editing node manually, the scheduler will require providing 'Unpublish on' date.

However, when updating node from 'admin/content' page (mass update) any action that forces publishing selected content (such as: Publish, Promote, make sticky) should require providing 'Unpublish on' date - same as for manual edit (above).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Michael Dajewski created an issue. See original summary.

Michael Dajewski’s picture

Created patch with 7.x-1.5
Following tests pass: 'Scheduler API', 'Scheduler date functionalities', 'Scheduler functionality'.
It did take some time to make it work with test case ID: 8 in: scheduler.test

SpaghettiBolognese’s picture

The patchs works as expected, thanks. re-rolled because of the invalid paths.

jonathan1055’s picture

Thanks @Michael Dajewski and @SpaghettiBolognese, you are right, this is a problem that should be fixed. I've made a few minor changes, removed a redundant line and redundant logic checks, but basically this patch is the same as yours.

However, this is also a problem in Scheduler 8.x so we'll need to fix that first. Probably should add test coverage too, atleast in 8.x

jonathan1055’s picture

Status: Active » Needs review

Needs review, then we get automatic testing.

jonathan1055’s picture

Version: 7.x-1.5 » 2.x-dev

Moving to the 2.x branch