src/actions/AdjacencyList/PartialTreeDataAction.php 1 location
|
@@ 147-152 (lines=6) @@
|
| 144 |
|
); |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
if (array_key_exists($current_selected_id, $result)) { |
| 148 |
|
$result[$current_selected_id] = array_merge( |
| 149 |
|
$result[$current_selected_id], |
| 150 |
|
['state' => ['opened' => true, 'selected' => true]] |
| 151 |
|
); |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
return array_values($result); |
| 155 |
|
} |
src/actions/AdjacencyList/FullTreeDataAction.php 1 location
|
@@ 171-176 (lines=6) @@
|
| 168 |
|
Yii::endProfile('Build tree'); |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
if (array_key_exists($current_selected_id, $result)) { |
| 172 |
|
$result[$current_selected_id] = array_merge( |
| 173 |
|
$result[$current_selected_id], |
| 174 |
|
['state' => ['opened' => true, 'selected' => true]] |
| 175 |
|
); |
| 176 |
|
} |
| 177 |
|
Yii::endProfile('Get tree'); |
| 178 |
|
|
| 179 |
|
header('Content-Type: application/json'); |