From: Sven Schöling Date: Tue, 10 Jan 2012 10:55:55 +0000 (+0100) Subject: Beim Klonen eines einmal gelöschten users das deleted Flag resetten. X-Git-Tag: release-2.7.0beta1~69^2~11 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1d5b112a688b73e06e6bb1f0df88a2dda1c5bd05;p=kivitendo-erp.git Beim Klonen eines einmal gelöschten users das deleted Flag resetten. --- diff --git a/SL/User.pm b/SL/User.pm index 49ba33924..5d58b5dac 100644 --- a/SL/User.pm +++ b/SL/User.pm @@ -738,7 +738,7 @@ sub create_employee_entry { do_query($form, $dbh, $query, ($self->{login}, $myconfig->{name}, $myconfig->{tel}, "user")); } elsif ($update_existing) { - my $query = qq|UPDATE employee SET name = ?, workphone = ?, role = 'user' WHERE id = ?|; + my $query = qq|UPDATE employee SET name = ?, workphone = ?, role = 'user', deleted = 'f' WHERE id = ?|; do_query($form, $dbh, $query, $myconfig->{name}, $myconfig->{tel}, $id); }