software-project / scrum-pm

Scrum PM is a plugin for Redmine ticket management system. It adds Scrum items like backlog, dashboard and others.
www.software-project.eu/EN/scrumpm
126 stars 47 forks source link

Dashboard does not refresh after Add Task to see newly created task. #56

Open heng7 opened 14 years ago

heng7 commented 14 years ago

v0.1.5: Dashboard does not refresh after Add Task to see newly created task. In previous version 0.1.4 the dashboard refreshes automatically after a Task was added.

Good job. Keep it up.

HirofumiYoshida commented 13 years ago

Maybe because you use Redmine1.0.x. I had the same problem.

Redmine have changed data structures of the attachment files. Add Task will fail with NoMethodError.

Rewrite it like this.

--- a/app/controllers/issue_sprints_controller.rb
+++ b/app/controllers/issue_sprints_controller.rb
@@ -44,7 +44,7 @@ class IssueSprintsController < ApplicationController
       @issue.fixed_version_id = @issue.user_story.version_id
       if @issue.save
         status = done_ratio_to_status(@issue)
-        attach_files(@issue, params[:attachments])
+        Attachment.attach_files(@issue, params[:attachments])
         call_hook(:controller_issues_new_after_save, { :params => params, :issu
         @issue_statuses = IssueStatus.find(:all)
heng7 commented 13 years ago

Yes, I am using Redmine 1.0.x. I see that the change you mentioned is already at line 49 Would you mind sharing your set of codes instead?

garethfiler commented 13 years ago

Hi,

Does anyone know if this issue has been fixed or is being worked on?

Thanks