diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 133de0610..73e92d385 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -2,7 +2,7 @@ class UsersController < ApplicationController before_filter :authenticate_user!, :except => [:new, :create] def index - @group_array = current_user.groups.collect{|x| [x.to_s, x.id]} + @groups_array = current_user.groups.collect{|x| [x.to_s, x.id]} unless params[:q] @people = Person.all diff --git a/app/views/users/index.html.haml b/app/views/users/index.html.haml index fec427aa4..3f0d01435 100644 --- a/app/views/users/index.html.haml +++ b/app/views/users/index.html.haml @@ -21,6 +21,6 @@ -else %td = form_for Request.new do |f| - =f.select(:group_id, @groups_array) + = f.select(:group_id, @groups_array) = f.hidden_field :destination_url, :value => person.email - =f.submit + = f.submit