mirror of https://github.com/MISP/MISP
chg: [galaxy clusters] selectCluster function opened up to the API for reasons.
parent
dea41dc58b
commit
5f006f2b33
|
@ -230,13 +230,16 @@ class GalaxiesController extends AppController
|
|||
}
|
||||
}
|
||||
$onClickForm = 'quickSubmitGalaxyForm';
|
||||
|
||||
$this->set('items', $items);
|
||||
$this->set('options', array( // set chosen (select picker) options
|
||||
'functionName' => $onClickForm,
|
||||
'multiple' => '-1',
|
||||
));
|
||||
$this->render('ajax/cluster_choice');
|
||||
if ($this->_isRest()) {
|
||||
return $this->RestResponse->viewData($items, $this->response->type());
|
||||
} else {
|
||||
$this->set('items', $items);
|
||||
$this->set('options', array( // set chosen (select picker) options
|
||||
'functionName' => $onClickForm,
|
||||
'multiple' => '-1',
|
||||
));
|
||||
$this->render('ajax/cluster_choice');
|
||||
}
|
||||
}
|
||||
|
||||
public function attachCluster($target_id, $target_type = 'event')
|
||||
|
|
Loading…
Reference in New Issue