Merge pull request #1377 from thiagotalma/clone-fix-scenario

Fix missing scenario clone

Andrew Cantino преди 9 години
родител
ревизия
b156e525b3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/models/agent.rb

+ 1 - 1
app/models/agent.rb

@@ -301,7 +301,7 @@ class Agent < ActiveRecord::Base
301 301
   class << self
302 302
     def build_clone(original)
303 303
       new(original.slice(:type, :options, :schedule, :controller_ids, :control_target_ids,
304
-                         :source_ids, :keep_events_for, :propagate_immediately)) { |clone|
304
+                         :source_ids, :keep_events_for, :propagate_immediately, :scenario_ids)) { |clone|
305 305
         # Give it a unique name
306 306
         2.upto(count) do |i|
307 307
           name = '%s (%d)' % [original.name, i]