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:
89edb2e
)
Bug Ware liess sich nicht loeschen -foreign key constraint Error,
author
Stephan Köhler
<s.koehler@linet-services.de>
Thu, 29 Jun 2006 15:26:13 +0000
(15:26 +0000)
committer
Stephan Köhler
<s.koehler@linet-services.de>
Thu, 29 Jun 2006 15:26:13 +0000
(15:26 +0000)
Preisgruppenpreise wurden nicht geloescht
SL/IC.pm
patch
|
blob
|
history
diff --git
a/SL/IC.pm
b/SL/IC.pm
index
9c60d63
..
8f2cfb3
100644
(file)
--- a/
SL/IC.pm
+++ b/
SL/IC.pm
@@
-718,6
+718,11
@@
sub delete {
# connect to database, turn off AutoCommit
my $dbh = $form->dbconnect_noauto($myconfig);
+ # first delete prices of pricegroup
+ my $query = qq|DELETE FROM prices
+ WHERE parts_id = $form->{id}|;
+ $dbh->do($query) || $form->dberror($query);
+
my $query = qq|DELETE FROM parts
WHERE id = $form->{id}|;
$dbh->do($query) || $form->dberror($query);