@@ 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 | } |
@@ 145-150 (lines=6) @@ | ||
142 | Yii::endProfile('Build tree'); |
|
143 | } |
|
144 | ||
145 | if (array_key_exists($current_selected_id, $result)) { |
|
146 | $result[$current_selected_id] = array_merge( |
|
147 | $result[$current_selected_id], |
|
148 | ['state' => ['opened' => true, 'selected' => true]] |
|
149 | ); |
|
150 | } |
|
151 | $this->selectedNodes = explode(',', Yii::$app->request->get('selected', '')); |
|
152 | foreach ($this->selectedNodes as $node) { |
|
153 | if ($node !== '') { |