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:
bb99760
)
Recommit von r1163 von skoehler: Bug Ware liess sich nicht loeschen -foreign key...
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 22 Nov 2006 16:34:39 +0000
(16:34 +0000)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Wed, 22 Nov 2006 16:34:39 +0000
(16:34 +0000)
SL/IC.pm
patch
|
blob
|
history
diff --git
a/SL/IC.pm
b/SL/IC.pm
index
74e71ce
..
d486228
100644
(file)
--- a/
SL/IC.pm
+++ b/
SL/IC.pm
@@
-797,6
+797,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);