A Node Teaser on an unpublished node resets to NULL when it is published by the Scheduler module.
Configuration:
-Drupal 4.7.6
-Latest build of Scheduler for 4.7.x
-Node Teaser module used for teasers, latest 4.7.x build
When a node is authored and saved in an unpublished state, the Node Teaser is properly saved, too. But when published by Scheduler, the Node Teaser is reset to NULL. Behavior prevents us from scheduling nodes to be published without human intervention.
Thinking this was a bug in Scheduler, I opened an issue there. Got this from the maintainer of Scheduler:
"Sorry guys but but when Scheduler publishes all it does is :
$node = node_load(...);
$node->status = 1;
node_save($node);
All Drupal API calls. Nodeteaser's tables are not touched by Scheduler. So the fault must me in Nodeteaser as it doesn't seem to be handling node_load() / node_save() API calls."
Comments
Comment #1
AdrianB commentedThat issue is already moved to Node Teaser:
http://drupal.org/node/150298
Comment #2
josh@pixael.com commentedthis happens also in drupal 5.3!
Comment #3
josh@pixael.com commentedthe problem is in _nodeteaser_update
replace with this new function and the teaser will not reset by scheduler