From 1cf67b3a1d87c762d1375683b95f4016e90be0a9 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Barth Date: Fri, 29 Oct 2010 22:28:24 +0000 Subject: [PATCH] Fixed: disabling autologin not persisted. #6438 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Contributed by Felix Schäfer git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4306 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/settings/_authentication.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/settings/_authentication.rhtml b/app/views/settings/_authentication.rhtml index da29bb70..11220534 100644 --- a/app/views/settings/_authentication.rhtml +++ b/app/views/settings/_authentication.rhtml @@ -3,7 +3,7 @@

<%= setting_check_box :login_required %>

-

<%= setting_select :autologin, [1, 7, 30, 365].collect{|days| [l('datetime.distance_in_words.x_days', :count => days), days.to_s]}, :blank => :label_disabled %>

+

<%= setting_select :autologin, [[l(:label_disabled), 0]] + [1, 7, 30, 365].collect{|days| [l('datetime.distance_in_words.x_days', :count => days), days.to_s]} %>

<%= setting_select :self_registration, [[l(:label_disabled), "0"], [l(:label_registration_activation_by_email), "1"],