summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-02-14 08:09:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-02-14 08:09:06 +0000
commit8534fc04a0fc7ff1c7e559a60d1d9d83b87cce78 (patch)
tree21c1cea1fd1154793db7178388d44a071d98c935 /app/controllers
parent3da7b1bc2882cfb02c5068680979158322242398 (diff)
downloadredmine-8534fc04a0fc7ff1c7e559a60d1d9d83b87cce78.tar.gz
redmine-8534fc04a0fc7ff1c7e559a60d1d9d83b87cce78.zip
Updated code comments.
git-svn-id: http://svn.redmine.org/redmine/trunk@14000 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/issues_controller.rb8
1 files 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'