From: Moritz Bunkus Date: Wed, 19 Mar 2014 08:37:20 +0000 (+0100) Subject: Revert "Benutzer als neu speichern" X-Git-Tag: release-3.2.0beta~477 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=0bbc7ffddd20e42362b9d959f1e57b444da44408;p=kivitendo-erp.git 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. --- 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"); } -->