Project

General

Profile

Actions

Feature #12022

closed

Change/Update author when an issue is re-opened to the person who re-opens

Added by Brian Lindahl about 12 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues workflow
Target version:
-
Start date:
Due date:
% Done:

90%

Estimated time:
Resolution:
Wont fix

Description

This improvement could be guarded with a new Project setting.

Add the following code to app/models/issue.rb:

  def update_author_when_reopened
    if reopened?
      self.author = User.current
    end
  end

Add a call to it for before_save:

- before_save :close_duplicates, :update_author_when_reopened, :update_done_ratio_from_issue_status, :force_updated_on_change
+ before_save :close_duplicates, :update_author_when_reopened, :update_done_ratio_from_issue_status, :force_updated_on_change


Related issues

Related to Redmine - Feature #1739: Add ability to change issue authorReopenedGo MAEDA2008-08-04

Actions
Actions

Also available in: Atom PDF