Browse Source

Fix debug code.

Akinori MUSHA 10 years ago
parent
commit
c138a49824
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/views/agents/_action_menu.html.erb

+ 1 - 1
app/views/agents/_action_menu.html.erb

@@ -67,7 +67,7 @@
       </div>
       <div class="modal-footer">
         <%= form_for(agent, as: :agent, url: agent_path(agent, return: returnTo), method: 'PUT') do |f| %>
-          <% if agent.can_receive_events? || true %>
+          <% if agent.can_receive_events? %>
             <div class="form-group">
               <%= check_box_tag check_box_id = "agent#{agent.id}_drop_pending_events", 'true', false, name: :drop_pending_events %>
               <%= label_tag check_box_id, 'Drop pending events' %>