To reproduce:
1. create node and publish it manually.
2. edit node, set date to be published on to some time in the past.
3. node is immediately unpublished, and only republished when cron is run.
This is a problem, since there may be edits to an already published node. The work-around is to clear that "Published on" date field, but it's not very intuitive or user friendly.
Instead, on submit the module should check to see if the scheduled date is in the past, and if it is, immediately publish it, or leave it published if it already is published.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | scheduler-module-190860-3.patch | 959 bytes | skiminki |
Comments
Comment #1
Leeteq commentedSubscribing.
Comment #2
AjK commentedPlease test this patch and if it works for you I'll do a release (Note this patch is against release version DRUPAL-5--1-11, version of this issue altered to reflect that).
Comment #3
skiminki commentedOk, the patch by AjK (comment 2) almost worked for me. However, the timezone shift must be adjusted, because time() returns unix timestamp in GMT and publish_on is localized (GMT + timezone seconds). Here's an additional patch.
Comment #4
skiminki commentedCommitted scheduler-module-190860-3.patch in CVS. http://drupal.org/cvs?commit=112682
I'm going to mark this fixed. Please reopen this issue (or submit a new one) if the problem persists.
Comment #5
skiminki commentedIn 5.x-1.13.