@@ -132,8 +132,6 class IssuesController < ApplicationController | |||
|
132 | 132 | end |
|
133 | 133 | end |
|
134 | 134 | |
|
135 | # Add a new issue | |
|
136 | # The new issue will be created from an existing one if copy_from parameter is given | |
|
137 | 135 | def new |
|
138 | 136 | respond_to do |format| |
|
139 | 137 | format.html { render :action => 'new', :layout => !request.xhr? } |
@@ -373,7 +371,6 class IssuesController < ApplicationController | |||
|
373 | 371 | |
|
374 | 372 | # Used by #edit and #update to set some common instance variables |
|
375 | 373 | # from the params |
|
376 | # TODO: Refactor, not everything in here is needed by #edit | |
|
377 | 374 | def update_issue_from_params |
|
378 | 375 | @time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project) |
|
379 | 376 | if params[:time_entry] |
@@ -401,7 +398,8 class IssuesController < ApplicationController | |||
|
401 | 398 | true |
|
402 | 399 | end |
|
403 | 400 | |
|
404 | # TODO: Refactor, lots of extra code in here | |
|
401 | # Used by #new and #create to build a new issue from the params | |
|
402 | # The new issue will be copied from an existing one if copy_from parameter is given | |
|
405 | 403 | def build_new_issue_from_params |
|
406 | 404 | @issue = Issue.new |
|
407 | 405 | if params[:copy_from] |
@@ -487,6 +485,8 class IssuesController < ApplicationController | |||
|
487 | 485 | end |
|
488 | 486 | end |
|
489 | 487 | |
|
488 | # Returns true if the issue copy should be linked | |
|
489 | # to the original issue | |
|
490 | 490 | def link_copy?(param) |
|
491 | 491 | case Setting.link_copied_issue |
|
492 | 492 | when 'yes' |
General Comments 0
You need to be logged in to leave comments.
Login now