From 188734cee4672fe7421293f7af68fa3734e52064 Mon Sep 17 00:00:00 2001 From: Martin Helmling Date: Tue, 7 Jan 2014 18:12:18 +0100 Subject: [PATCH] =?utf8?q?Benutzer=20als=20neu=20speichern=20leert=20erst?= =?utf8?q?=20einmal=20die=20m=C3=B6glichen=20Mandantenzugriffe,=20damit=20?= =?utf8?q?bei=20einem=20Login=20nicht=20gleich=20dieser=20neue=20Benutzer?= =?utf8?q?=20in=20der=20db=20employee=20angelegt=20wird.=20Die=20Mandanten?= =?utf8?q?zugriffe=20m=C3=BCssen=20vom=20admin=20anschlie=C3=9Fend=20expli?= =?utf8?q?zit=20editiert=20werden.=20Behebt=20#1695?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/Admin.pm | 6 ++++++ templates/webpages/admin/edit_user.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/SL/Controller/Admin.pm b/SL/Controller/Admin.pm index 2e5542086..179142c73 100644 --- a/SL/Controller/Admin.pm +++ b/SL/Controller/Admin.pm @@ -129,6 +129,12 @@ 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 94db96b12..5ecd92673 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_user"); + submit_with_action("save_newuser"); } --> -- 2.20.1