Skip to content
Snippets Groups Projects
Commit c25fb493 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch 'task-1462-select-foreman-hostgroups' into 'master'

Task 1462 select foreman hostgroups

See merge request !30
parents 934c219f 1bead7cc
Branches
No related tags found
No related merge requests found
......@@ -383,10 +383,13 @@ class ForemanApi {
}
$aReturn=array();
foreach($aTmp as $aItem){
$aReturn[] = array_filter($aItem, function($key) {
return array_search($key, $this->_aRequest['response']) !==false;
}, ARRAY_FILTER_USE_KEY
);
$aReturnitem=array();
foreach($this->_aRequest['response'] as $sKey){
if (array_key_exists($sKey, $aItem)){
$aReturnitem[$sKey]=$aItem[$sKey];
}
}
$aReturn[] = $aReturnitem;
}
return ($bIsList==1)
? $aReturn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment