Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `+' for nil:NilClass #16

Closed
gyhor opened this issue Dec 30, 2013 · 1 comment
Closed

undefined method `+' for nil:NilClass #16

gyhor opened this issue Dec 30, 2013 · 1 comment
Assignees
Labels
Milestone

Comments

@gyhor
Copy link

gyhor commented Dec 30, 2013

Hi,
thanks for your plugin. I think it would be very helpful for me.
But the rake task won't work if there is a "Fixed Schedule".
See the error message

# rake RAILS_ENV=production redmine:recur_tasks
(in /opt/redmine-2.3)
Checking for Redmine recurring tasks.
rake aborted!
undefined method `+' for nil:NilClass
/opt/redmine-2.3/plugins/recurring_tasks/app/models/recurring_task.rb:51:in `need_to_recur?'
/opt/redmine-2.3/plugins/recurring_tasks/app/models/recurring_task.rb:56:in `recur_issue_if_needed!'
/opt/redmine-2.3/plugins/recurring_tasks/app/models/recurring_task.rb:88:in `block in add_recurrences!'
/opt/redmine-2.3/plugins/recurring_tasks/app/models/recurring_task.rb:87:in `each'
/opt/redmine-2.3/plugins/recurring_tasks/app/models/recurring_task.rb:87:in `add_recurrences!'
/opt/redmine-2.3/plugins/recurring_tasks/lib/tasks/recurring_tasks.rake:12:in `block (2 levels) in <top (required)>'
Tasks: TOP => redmine:recur_tasks
(See full trace by running task with --trace)

@ghost ghost assigned nutso Dec 31, 2013
nutso added a commit that referenced this issue Dec 31, 2013
@nutso
Copy link
Owner

nutso commented Dec 31, 2013

good catch -- this would have occurred for issues on a fixed schedule and with no due date. merged into master

@nutso nutso closed this as completed Dec 31, 2013
nutso added a commit that referenced this issue Dec 31, 2013
@nutso nutso added this to the v1.2.5 milestone Jun 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants