|
@@ 200-202 (lines=3) @@
|
| 197 |
|
private function move($position = null, $siblings = [], $oldParentId) |
| 198 |
|
{ |
| 199 |
|
$class = $this->className; |
| 200 |
|
if (null === $oldParent = $class::findOne($oldParentId)) { |
| 201 |
|
return ['error' => Yii::t('jstw', "Old parent with id '{id}' not found!", ['id' => $oldParentId])]; |
| 202 |
|
} |
| 203 |
|
$nodeCountCondition = [ |
| 204 |
|
'and', |
| 205 |
|
['>=', $this->leftAttribute, $this->node{$this->leftAttribute}], |
|
@@ 347-349 (lines=3) @@
|
| 344 |
|
private function moveMultiRoot($position = null, $siblings = [], $oldParentId) |
| 345 |
|
{ |
| 346 |
|
$class = $this->className; |
| 347 |
|
if (null === $oldParent = $class::findOne($oldParentId)) { |
| 348 |
|
return ['error' => Yii::t('jstw', "Old parent with id '{id}' not found!", ['id' => $oldParentId])]; |
| 349 |
|
} |
| 350 |
|
$nodeCountCondition = [ |
| 351 |
|
'and', |
| 352 |
|
['>=', $this->leftAttribute, $this->node->{$this->leftAttribute}], |