-
-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
When a project with periodic task is removed, its tasks are not. This causes crash of the rake task at the line:
| issue.save! |
Here, #save executes validations and validations attempt to access the project, which does not exist any longer. The exact error message is:
rake aborted!
NoMethodError: undefined method `assignable_users' for nil:NilClass
/opt/bitnami/apps/redmine/htdocs/app/models/issue.rb:928:in `assignable_users'
/opt/bitnami/apps/redmine/htdocs/app/models/issue.rb:729:in `validate_issue'
/opt/bitnami/apps/redmine/htdocs/plugins/periodictask/lib/scheduled_tasks_checker.rb:34:in `block in checktasks!'
/opt/bitnami/apps/redmine/htdocs/plugins/periodictask/lib/scheduled_tasks_checker.rb:4:in `checktasks!'
/opt/bitnami/apps/redmine/htdocs/plugins/periodictask/lib/tasks/periodictask.rake:11:in `block (2 levels) in <top (required)>'
Tasks: TOP => redmine:check_periodictasks
(See full trace by running task with --trace)
I believe, the plugin should be fixed, so that periodic tasks are removed with the project.
Metadata
Metadata
Assignees
Labels
No labels