Changes
This commit is contained in:
parent
611980ef5f
commit
5aa6ef2f49
|
|
@ -25,7 +25,8 @@ class HierarchyController extends Controller
|
|||
foreach($response->data->items as $item) {
|
||||
$items[$item->parent_id][] = $item;
|
||||
}
|
||||
$items[$response->data->me->parent_id][] = $response->data->me;
|
||||
if($response->data->me->parent_id != 'root')
|
||||
$items[$response->data->me->parent_id][] = $response->data->me;
|
||||
$domain = LambdaRequest::signedrequest('get', $this->_service, 'domain/get_one');
|
||||
|
||||
//echo '<pre>'; print_r($response); print_r($domain); exit;
|
||||
|
|
@ -49,7 +50,7 @@ class HierarchyController extends Controller
|
|||
foreach($positions->data->items as $position){
|
||||
$positions_dd[$position->code] = $position->name . ' ('.$position->code.')';
|
||||
}
|
||||
|
||||
//echo '<pre>'; print_r($items); exit;
|
||||
return $this->view('list')->with([
|
||||
'title' => $this->_title,
|
||||
'base_url' => $this->_base_url,
|
||||
|
|
|
|||
Loading…
Reference in New Issue