From 8534fc04a0fc7ff1c7e559a60d1d9d83b87cce78 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 14 Feb 2015 08:09:06 +0000 Subject: [PATCH] Updated code comments. git-svn-id: http://svn.redmine.org/redmine/trunk@14000 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/issues_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 1cf909294..76ec54310 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -132,8 +132,6 @@ class IssuesController < ApplicationController end end - # Add a new issue - # The new issue will be created from an existing one if copy_from parameter is given def new respond_to do |format| format.html { render :action => 'new', :layout => !request.xhr? } @@ -373,7 +371,6 @@ class IssuesController < ApplicationController # Used by #edit and #update to set some common instance variables # from the params - # TODO: Refactor, not everything in here is needed by #edit def update_issue_from_params @time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project) if params[:time_entry] @@ -401,7 +398,8 @@ class IssuesController < ApplicationController true end - # TODO: Refactor, lots of extra code in here + # Used by #new and #create to build a new issue from the params + # The new issue will be copied from an existing one if copy_from parameter is given def build_new_issue_from_params @issue = Issue.new if params[:copy_from] @@ -487,6 +485,8 @@ class IssuesController < ApplicationController end end + # Returns true if the issue copy should be linked + # to the original issue def link_copy?(param) case Setting.link_copied_issue when 'yes' -- 2.39.5