You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I bumped on the same issue today and I've solved it this way.
I couldn't find info on the default_status field, but it seems that the initialization of the issue's status was changed as part of contributed changes to make the plugin compatible with Redmine 3.0.
I don't have a working Redmine 3.0 to test this, but if I'm not mistaken, with this patch it should work in either case.
diff --gita/app/models/recurring_task.rbb/app/models/recurring_task.rbindex8dc7c68..d1da90e100644
--- a/app/models/recurring_task.rb
+++ b/app/models/recurring_task.rb
@@ -249,7 +249,11 @@
new_issue.due_date=next_scheduled_recurrence#41 previous_date_for_recurrence + recurrence_patternnew_issue.start_date=new_issue.due_datenew_issue.done_ratio=0
- new_issue.status=issue.tracker.default_status# issue status is NOT automatically new, default is whatever the default status for new issues is
+ ifissue.tracker.respond_to?(:default_status)
+ new_issue.status=issue.tracker.default_status# issue status is NOT automatically new, default is whatever the default status for new issues is
+ else
+ new_issue.status=IssueStatus.default# issue status is NOT automatically new, default is whatever the default status for new issues is
+ endnew_issue.save!puts"Recurring #{issue.id}: #{issue.subj_date}, created #{new_issue.id}: #{new_issue.subj_date}"
Any idea how to solve this?
Redmine: 2.6.4
RecurringTasks: a331d49
TIA
The text was updated successfully, but these errors were encountered: