Fixed: error when creating a tracker without copying an existing wokflow
git-svn-id: http://redmine.rubyforge.org/svn/trunk@598 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
efbe29249c
commit
46745614b4
|
@ -36,7 +36,7 @@ class TrackersController < ApplicationController
|
|||
@tracker = Tracker.new(params[:tracker])
|
||||
if request.post? and @tracker.save
|
||||
# workflow copy
|
||||
if params[:copy_workflow_from] && (copy_from = Tracker.find_by_id(params[:copy_workflow_from]))
|
||||
if !params[:copy_workflow_from].blank? && (copy_from = Tracker.find_by_id(params[:copy_workflow_from]))
|
||||
copy_from.workflows.each do |w|
|
||||
@tracker.workflows << w.clone
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue