|
@@ -43,7 +43,7 @@ discard block |
|
|
block discarded – undo |
|
43
|
43
|
$repository = $space->getRepository(); |
|
44
|
44
|
|
|
45
|
45
|
$parent = $repository->findOne($entity->parent); |
|
46
|
|
- $level_up = $parent ? $parent->depth+1 : 0; |
|
|
46
|
+ $level_up = $parent ? $parent->depth + 1 : 0; |
|
47
|
47
|
|
|
48
|
48
|
$left_key = $entity->left; |
|
49
|
49
|
$right_key = $entity->right; |
|
@@ -52,7 +52,7 @@ discard block |
|
|
block discarded – undo |
|
52
|
52
|
$map = $space->getTupleMap(); |
|
53
|
53
|
|
|
54
|
54
|
$old_entity = $client->getSpace($space->getId())->select([$entity->id])->getData()[0]; |
|
55
|
|
- $old_parent = $repository->findOne($old_entity[$map->parent-1]); |
|
|
55
|
+ $old_parent = $repository->findOne($old_entity[$map->parent - 1]); |
|
56
|
56
|
$old_parent_id = $old_parent ? $old_parent->id : 0; |
|
57
|
57
|
|
|
58
|
58
|
if ($old_parent_id != $entity->parent) { |
Please login to merge, or discard this patch.