Skip to content

Commit 7b7faa3

Browse files
committed
Fixed problem that an PartsContainingElement could not be deleted, if the sub elements contained parts.
1 parent 60ced9e commit 7b7faa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Base/PartsContainingDBElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function delete($delete_recursive = false, $delete_files_from_hdd = false
118118
try {
119119
$transaction_id = $this->database->beginTransaction(); // start transaction
120120

121-
$parts = $this->getParts('id_category');
121+
$parts = $this->getParts();
122122

123123
if (count($parts) > 0) {
124124
throw new Exception('Das Element enthält noch '.count($parts).' Bauteile!');

0 commit comments

Comments
 (0)