mirror of https://github.com/MISP/MISP
Merge pull request #5290 from JakubOnderka/patch-59
chg: [internal] Remove unused code from AttributesController::indexpull/5296/head
commit
13573efbd7
|
@ -80,18 +80,10 @@ class AttributesController extends AppController
|
|||
return $this->RestResponse->viewData($attributes, $this->response->type());
|
||||
}
|
||||
$org_ids = array();
|
||||
$tag_ids = array();
|
||||
$orgs = $this->Attribute->Event->Orgc->find('list', array(
|
||||
'conditions' => array('Orgc.id' => $org_ids),
|
||||
'fields' => array('Orgc.id', 'Orgc.name')
|
||||
));
|
||||
if (!empty($tag_ids)) {
|
||||
$tags = $this->Attribute->AttributeTag->Tag->find('all', array(
|
||||
'conditions' => array('Tag.id' => $tag_ids),
|
||||
'recursive' => -1,
|
||||
'fields' => array('Tag.id', 'Tag.name', 'Tag.colour')
|
||||
));
|
||||
}
|
||||
if (!$this->_isRest()) {
|
||||
$temp = $this->__searchUI($attributes);
|
||||
$this->loadModel('Galaxy');
|
||||
|
|
Loading…
Reference in New Issue