瀏覽代碼

The control links selector was too limiting

Andrew Cantino 9 年之前
父節點
當前提交
431cfaa930
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      app/views/agents/_form.html.erb

+ 1 - 2
app/views/agents/_form.html.erb

@@ -65,9 +65,8 @@
               <div class="can-control-other-agents">
                 <div class="form-group">
                   <%= f.label :control_targets %>
-                  <% eventControlTargets = current_user.agents.select(&:can_be_scheduled?) %>
                   <%= f.select(:control_target_ids,
-                               options_for_select(eventControlTargets.map {|s| [s.name, s.id] },
+                               options_for_select(current_user.agents.map {|s| [s.name, s.id] },
                                                   @agent.control_target_ids),
                                {}, { multiple: true, size: 5, class: 'select2 form-control' }) %>
                 </div>