From 282c4d106b2d52d78e31de13e372059666372b75 Mon Sep 17 00:00:00 2001
From: Michael Frister
Date: Mon, 15 Jul 2013 08:22:56 +0200
Subject: [PATCH] User form: Fix random password assignment checkbox
---
app/views/users/_form.html.erb | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/app/views/users/_form.html.erb b/app/views/users/_form.html.erb
index 61af1c0476..5936e105cf 100644
--- a/app/views/users/_form.html.erb
+++ b/app/views/users/_form.html.erb
@@ -50,7 +50,7 @@ See doc/COPYRIGHT.rdoc for more details.
- <%= check_box_tag("user_assign_random_password",
+ <%= check_box_tag("user[assign_random_password]",
"1",
assign_random_password_enabled) %>
@@ -68,7 +68,8 @@ See doc/COPYRIGHT.rdoc for more details.
:disabled => assign_random_password_enabled %>
- <%= f.check_box :force_password_change %>
+ <%= f.check_box :force_password_change,
+ :disabled => assign_random_password_enabled %>