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.
This module throws an error in cron if there is scheduled action for an entity that has been deleted. This problem stops other scheduled actions from happening if the error comes before them.
I will attach a patch that does 2 things
- Checks in schedule_actions_cron that $object !== FALSE. FALSE will be returned from the load functions dont't return an entity. Can't check !empty b/c system type is set to NULL
- implements hook_entity_delete and deletes an actions for delete entities
Patch next......
Comment | File | Size | Author |
---|---|---|---|
#1 | scheduled_actions-fix_cron_error_for_deleted_entities-1414876-1.patch | 2.87 KB | tedbow |
Comments
Comment #1
tedbowpatch attached.
Comment #2
slashrsm CreditAttribution: slashrsm commentedCommited: http://drupalcode.org/project/scheduled_actions.git/commit/d373c1f
Thanks.