From: Stephan Köhler Date: Thu, 24 Nov 2005 15:38:07 +0000 (+0000) Subject: Merge von 577 aus unstable: Speicherroutinen gepatcht: uid um einen Zufallswert ergae... X-Git-Tag: release-2.2.0~111 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4c10960b7ecb748236d2a7041eb9d13f886f979d;p=kivitendo-erp.git Merge von 577 aus unstable: Speicherroutinen gepatcht: uid um einen Zufallswert ergaenzt, damit Batchoperationen nicht fehlschlagen --- diff --git a/SL/CT.pm b/SL/CT.pm index e97905ae8..c6f55da3b 100644 --- a/SL/CT.pm +++ b/SL/CT.pm @@ -391,7 +391,9 @@ sub save_vendor { } else { my $uid = time; $uid .= $form->{login}; - + my $uid = rand() . time; + $uid .= $form->{login}; + $uid = substr($uid, 2, 75); $query = qq|INSERT INTO vendor (name) VALUES ('$uid')|; $dbh->do($query) || $form->dberror($query); diff --git a/SL/IC.pm b/SL/IC.pm index 42959fe6b..48c799675 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -258,7 +258,7 @@ sub save { $dbh->do($query) || $form->dberror($query); } else { - my $uid = time; + my $uid = rand() . time; $uid .= $form->{login}; $query = qq|SELECT p.id FROM parts p