Skip to content

Commit

Permalink
Potential fix for 42523: Failed test: Kompetenzbaum anlegen, sortiere…
Browse files Browse the repository at this point in the history
…n und löschen
  • Loading branch information
tfamula committed Nov 5, 2024
1 parent c70ec94 commit 2bf72d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/ILIAS/Skill/Node/class.SkillDeletionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function deleteTree(int $node_id): void

public function deleteNode(int $node_id, \ilSkillTree $tree = null): void
{
if ($node_id != \ilTree::POS_FIRST_NODE) {
if ($node_id != \ilTree::POS_FIRST_NODE || $node_id !== 0) {
if (!$tree) {
$tree = $this->tree_repo->getTreeForNodeId($node_id);
}
Expand Down

0 comments on commit 2bf72d3

Please sign in to comment.