From 0bbc7ffddd20e42362b9d959f1e57b444da44408 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 19 Mar 2014 09:37:20 +0100 Subject: [PATCH] Revert "Benutzer als neu speichern" This reverts commit 188734cee4672fe7421293f7af68fa3734e52064. Der Bug trat nach dem kompletten Umschreiben des Administrationscodes schon nicht mehr auf. Der User wird erst dann in den Datenbanken angelegt, wenn er sich anmeldet. Dieser Revert hingegen behebt #2471. --- SL/Controller/Admin.pm | 6 ------ templates/webpages/admin/edit_user.html | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/SL/Controller/Admin.pm b/SL/Controller/Admin.pm index 0481926c9..5e6456332 100644 --- a/SL/Controller/Admin.pm +++ b/SL/Controller/Admin.pm @@ -129,12 +129,6 @@ sub action_edit_user { $self->edit_user_form(title => t8('Edit User')); } -sub action_save_newuser { - my ($self) = @_; - $::form->{user}{clients} = 0; - $self->action_save_user(); -} - sub action_save_user { my ($self) = @_; my $params = delete($::form->{user}) || { }; diff --git a/templates/webpages/admin/edit_user.html b/templates/webpages/admin/edit_user.html index 5ecd92673..94db96b12 100644 --- a/templates/webpages/admin/edit_user.html +++ b/templates/webpages/admin/edit_user.html @@ -158,7 +158,7 @@ function save_as_new() { $("#user_id").val(""); - submit_with_action("save_newuser"); + submit_with_action("save_user"); } --> -- 2.20.1