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
Sami Mokaddem 2018-05-08 07:19:51 +00:00
parent 680311f68f
commit f1cefb3503
1 changed files with 0 additions and 1 deletions

View File

@ -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));
}