summaryrefslogtreecommitdiffstats
path: root/app/controllers/trackers_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/trackers_controller.rb')
-rw-r--r--app/controllers/trackers_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/trackers_controller.rb b/app/controllers/trackers_controller.rb
index 88381a1b8..64367f373 100644
--- a/app/controllers/trackers_controller.rb
+++ b/app/controllers/trackers_controller.rb
@@ -48,7 +48,7 @@ class TrackersController < ApplicationController
@tracker.safe_attributes = params[:tracker]
if @tracker.save
# workflow copy
- if !params[:copy_workflow_from].blank? && (copy_from = Tracker.find_by_id(params[:copy_workflow_from]))
+ if params[:copy_workflow_from].present? && (copy_from = Tracker.find_by_id(params[:copy_workflow_from]))
@tracker.copy_workflow_rules(copy_from)
end
flash[:notice] = l(:notice_successful_create)