mirror of https://github.com/MISP/MISP
fix: Removed sharing group option from the quick distribution edit, fixes #2116
parent
13f4224fe6
commit
13b8ad275d
|
@ -2154,7 +2154,11 @@ class AttributesController extends AppController {
|
|||
}
|
||||
}
|
||||
$this->layout = 'ajax';
|
||||
if ($field == 'distribution') $this->set('distributionLevels', $this->Attribute->shortDist);
|
||||
if ($field == 'distribution') {
|
||||
$distributionLevels = $this->Attribute->shortDist;
|
||||
unset($distributionLevels[4]);
|
||||
$this->set('distributionLevels', $distributionLevels);
|
||||
}
|
||||
if ($field == 'category') {
|
||||
$typeCategory = array();
|
||||
foreach ($this->Attribute->categoryDefinitions as $k => $category) {
|
||||
|
|
|
@ -47,7 +47,7 @@ class Attribute extends AppModel {
|
|||
0 => 'Your organisation only', 1 => 'This community only', 2 => 'Connected communities', 3 => 'All communities', 4 => 'Sharing group', 5 => 'Inherit event'
|
||||
);
|
||||
|
||||
public $shortDist = array(0 => 'Organisation', 1 => 'Community', 2 => 'Connected', 3 => 'All', 4 => ' sharing Group', 5 => 'Inherit');
|
||||
public $shortDist = array(0 => 'Organisation', 1 => 'Community', 2 => 'Connected', 3 => 'All', 4 => ' Sharing Group', 5 => 'Inherit');
|
||||
|
||||
// these are definitions of possible types + their descriptions and maybe later other behaviors
|
||||
// e.g. if the attribute should be correlated with others or not
|
||||
|
|
Loading…
Reference in New Issue