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:
Jean-Philippe Lang 2007-08-01 19:51:02 +00:00
parent efbe29249c
commit 46745614b4
1 changed files with 1 additions and 1 deletions

View File

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