mirror of https://github.com/MISP/MISP
fix: [DistributionGraph] include metadata for all distribution level
When fetching distribution graph data, returns information about all distribution level (even not concerned).pull/3237/head
parent
680311f68f
commit
f1cefb3503
|
@ -18,7 +18,6 @@
|
|||
$sgs = $this->__eventModel->SharingGroup->fetchAllAuthorised($this->__user, 'name', 1);
|
||||
$this->__json['allSharingGroup'] = h(array_values($sgs));
|
||||
$distributionLevels = $this->__eventModel->distributionLevels;
|
||||
if (empty($sgs)) unset($distributionLevels[4]);
|
||||
foreach ($distributionLevels as $key => $value) {
|
||||
$this->__json['distributionInfo'][$key] = array('key' => h($value), 'desc' => h($this->__eventModel->distributionDescriptions[$key]['formdesc']), 'value' => h($key));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue