projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4791d8a
)
Beim Klonen eines einmal gelöschten users das deleted Flag resetten.
author
Sven Schöling
<s.schoeling@linet-services.de>
Tue, 10 Jan 2012 10:55:55 +0000
(11:55 +0100)
committer
Wulf
<wulf@coulmann.de>
Tue, 10 Jan 2012 16:09:13 +0000
(17:09 +0100)
SL/User.pm
patch
|
blob
|
history
diff --git
a/SL/User.pm
b/SL/User.pm
index
49ba339
..
5d58b5d
100644
(file)
--- 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);
}