Fix for ticket #181. Valiant take note of the change to

admin_users.php.  I had to remove the check for the locale as it
hasn't been added to the form.
This commit is contained in:
Tim Almdal
2009-03-25 16:21:36 +00:00
parent 961d5e11cf
commit 3cb2c42e49
2 changed files with 5 additions and 3 deletions

View File

@@ -41,8 +41,10 @@ class Admin_Users_Controller extends Controller {
$user = user::create(
$name, $form->add_user->full_name->value, $form->add_user->password->value);
$user->email = $form->add_user->email->value;
$desired_locale = $form->add_user->locale->value;
$user->locale = $desired_locale == "none" ? null : $desired_locale;
// @todo Add locale to the user add form
$user->locale = null;
$user->save();
message::success(t("Created user %user_name", array("user_name" => $user->name)));
print json_encode(array("result" => "success"));