redmine-plugin-recurring-tasks icon indicating copy to clipboard operation
redmine-plugin-recurring-tasks copied to clipboard

Patch to display user list in setting

Open quanvn opened this issue 10 years ago • 1 comments

Hi @nutso, I make this small patch in the setting views to allow admin to select user from user list instead of finding and entering user id. Please check and consider merge it into your main release. Thanks File affect app/views/settings/_recurring_tasks_settings.html.rb

  1. Add these at the begining of file <%- users = User.active.all.sort_by {|e| e[:lastname]} -%>
  2. replace the

with

<%= select_tag("settings[journal_attributed_to_user]", options_from_collection_for_select(users, :id, :name, settings['journal_attributed_to_user']), :include_blank => true) %>

quanvn avatar Jun 24 '15 03:06 quanvn

develop branch confirmed in 2.x, still need to test on 3.x

nutso avatar Jun 30 '15 09:06 nutso