diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-11 20:38:26 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-11 20:38:26 +0000 |
commit | 24be0551ccd77c7facf0278825973d604942d88a (patch) | |
tree | e74ef651f120edfb72d83e623b7eb42a576e2116 /app/controllers/workflows_controller.rb | |
parent | 5dd7467061fbe6b649a6bf92f969184e41bc8908 (diff) | |
download | redmine-24be0551ccd77c7facf0278825973d604942d88a.tar.gz redmine-24be0551ccd77c7facf0278825973d604942d88a.zip |
Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10987 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/workflows_controller.rb')
-rw-r--r-- | app/controllers/workflows_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/workflows_controller.rb b/app/controllers/workflows_controller.rb index 16fe75d16..f2a948a78 100644 --- a/app/controllers/workflows_controller.rb +++ b/app/controllers/workflows_controller.rb @@ -106,7 +106,7 @@ class WorkflowsController < ApplicationController if request.post? if params[:source_tracker_id].blank? || params[:source_role_id].blank? || (@source_tracker.nil? && @source_role.nil?) flash.now[:error] = l(:error_workflow_copy_source) - elsif @target_trackers.nil? || @target_roles.nil? + elsif @target_trackers.blank? || @target_roles.blank? flash.now[:error] = l(:error_workflow_copy_target) else WorkflowRule.copy(@source_tracker, @source_role, @target_trackers, @target_roles) |