mirror of https://github.com/MISP/MISP
fix: [galaxyClusters:index] Apply find on correct model for REST
requestspull/6120/head
parent
97d38eaaa5
commit
63d3cf39e6
|
@ -83,7 +83,7 @@ class GalaxyClustersController extends AppController
|
|||
$searchConditions['GalaxyCluster.galaxy_id'] = $galaxyId;
|
||||
|
||||
if ($this->_isRest()) {
|
||||
$clusters = $this->Galaxy->find(
|
||||
$clusters = $this->GalaxyCluster->find(
|
||||
'all',
|
||||
array(
|
||||
'conditions' => array(
|
||||
|
@ -91,7 +91,7 @@ class GalaxyClustersController extends AppController
|
|||
),
|
||||
)
|
||||
);
|
||||
return $this->RestResponse->viewData($galaxies, $this->response->type());
|
||||
return $this->RestResponse->viewData($clusters, $this->response->type());
|
||||
} else {
|
||||
$this->paginate['conditions']['AND'][] = $contextConditions;
|
||||
$this->paginate['conditions']['AND'][] = $searchConditions;
|
||||
|
|
Loading…
Reference in New Issue