From eb53e2448eb77f06f60046b6cf6b3109150ef143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Wed, 25 Mar 2015 13:41:48 +0100 Subject: [PATCH] Redmine3 support #364 --- app/views/dmsf_state/_user_pref.html.erb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/dmsf_state/_user_pref.html.erb b/app/views/dmsf_state/_user_pref.html.erb index 669c5037..1855467a 100644 --- a/app/views/dmsf_state/_user_pref.html.erb +++ b/app/views/dmsf_state/_user_pref.html.erb @@ -1,7 +1,8 @@ <%# Redmine plugin for Document Management System "Features" # -# Copyright (C) 2011 Vít Jonáš -# Copyright (C) 2012 Daniel Munn +# Copyright (C) 2011 Vít Jonáš +# Copyright (C) 2012 Daniel Munn +# Copyright (C) 2011-15 Karel Pičman # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -21,7 +22,7 @@
<%= form_tag({:controller => 'dmsf_state', :action => 'user_pref_save', :id => @project}, :method => :post) do %>
- <% member = @project.members.find(:first, :conditions => {:user_id => User.current.id}) %> + <% member = @project.members.where(:user_id => User.current.id).first %> <% mail_notification = member ? member.dmsf_mail_notification : nil %> <%= l(:label_notifications) %>: <%= select_tag(