mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
Copy service_id when cloning an agent
This commit is contained in:
parent
68ad0f2e89
commit
90dd0f7cdc
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ class Agent < ActiveRecord::Base
|
|||
|
||||
class << self
|
||||
def build_clone(original)
|
||||
new(original.slice(:type, :options, :schedule, :controller_ids, :control_target_ids,
|
||||
new(original.slice(:type, :options, :service_id, :schedule, :controller_ids, :control_target_ids,
|
||||
:source_ids, :keep_events_for, :propagate_immediately, :scenario_ids)) { |clone|
|
||||
# Give it a unique name
|
||||
2.upto(count) do |i|
|
||||
|
|
Loading…
Add table
Reference in a new issue