diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-01 19:51:02 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-01 19:51:02 +0000 |
commit | 46745614b495c5344489cef07a7690e1b8e1a171 (patch) | |
tree | 73f02012794cd0eafa6233bf623863095d398fbd /app/controllers/trackers_controller.rb | |
parent | efbe29249c49936fa31a812c1ab27dab92c69fbd (diff) | |
download | redmine-46745614b495c5344489cef07a7690e1b8e1a171.tar.gz redmine-46745614b495c5344489cef07a7690e1b8e1a171.zip |
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
Diffstat (limited to 'app/controllers/trackers_controller.rb')
-rw-r--r-- | app/controllers/trackers_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/trackers_controller.rb b/app/controllers/trackers_controller.rb index a473bcf41..e83bd40d9 100644 --- a/app/controllers/trackers_controller.rb +++ b/app/controllers/trackers_controller.rb @@ -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 |