diff --git a/app/helpers/users_helper_patch.rb b/app/helpers/users_helper_patch.rb index db8165d..ba44da4 100644 --- a/app/helpers/users_helper_patch.rb +++ b/app/helpers/users_helper_patch.rb @@ -2,10 +2,7 @@ module UsersHelperPatch def self.included(base) base.send(:include, InstanceMethods) - # Wrap the methods we are extending - base.alias_method_chain :users_status_options_for_select, :parent_id - - # Exectue this code at the class level (not instance level) + # Execute this code at the class level (not instance level) base.class_eval do unloadable # Send unloadable so it will not be unloaded in development diff --git a/app/views/redmine_my_users/index.html.erb b/app/views/redmine_my_users/index.html.erb index dbe6c21..719e22a 100644 --- a/app/views/redmine_my_users/index.html.erb +++ b/app/views/redmine_my_users/index.html.erb @@ -6,7 +6,7 @@ <%= select_tag 'status', - users_status_options_for_select(@status), + users_status_options_for_select_with_parent_id(@status), :class => "small", :onchange => "this.form.submit(); return false;" %> @@ -54,4 +54,3 @@
<%= pagination_links_full @user_pages, @user_count %>
<% html_title(l(:label_my_users)) -%> -