1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-24 09:21:12 +00:00

Updated code comments.

git-svn-id: http://svn.redmine.org/redmine/trunk@14000 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2015-02-14 08:09:06 +00:00
parent 3da7b1bc28
commit 8534fc04a0

View File

@ -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'