The control links selector was too limiting

Andrew Cantino 9 years ago
parent
commit
431cfaa930
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/views/agents/_form.html.erb

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

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