Skip to content

Commit

Permalink
Merge pull request huginn#1377 from thiagotalma/clone-fix-scenario
Browse files Browse the repository at this point in the history
Fix missing scenario clone
  • Loading branch information
cantino committed Mar 30, 2016
2 parents a0f8866 + c668e28 commit b156e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/agent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def boolify(option_value)
class << self
def build_clone(original)
new(original.slice(:type, :options, :schedule, :controller_ids, :control_target_ids,
:source_ids, :keep_events_for, :propagate_immediately)) { |clone|
:source_ids, :keep_events_for, :propagate_immediately, :scenario_ids)) { |clone|
# Give it a unique name
2.upto(count) do |i|
name = '%s (%d)' % [original.name, i]
Expand Down

0 comments on commit b156e52

Please sign in to comment.