mirror of https://github.com/MISP/MISP
fix: [UI] With the correct field name, it works better ;-)
- threat_level_id is the name of the field, and now the hover description works :Dpull/5404/head
parent
5ed87a6f78
commit
222dd10977
|
@ -2065,7 +2065,8 @@ class EventsController extends AppController
|
|||
// combobox for risks
|
||||
$threat_levels = $this->Event->ThreatLevel->find('all');
|
||||
$this->set('threatLevels', Set::combine($threat_levels, '{n}.ThreatLevel.id', '{n}.ThreatLevel.name'));
|
||||
$fieldDesc['threat_level'] = Set::combine($threat_levels, '{n}.ThreatLevel.id', '{n}.ThreatLevel.description');
|
||||
$fieldDesc['threat_level_id'] = Set::combine($threat_levels, '{n}.ThreatLevel.id', '{n}.ThreatLevel.description');
|
||||
|
||||
// combobox for analysis
|
||||
$this->set('sharingGroups', $sgs);
|
||||
// tooltip for analysis
|
||||
|
@ -2408,7 +2409,7 @@ class EventsController extends AppController
|
|||
// combobox for risks
|
||||
$threat_levels = $this->Event->ThreatLevel->find('all');
|
||||
$this->set('threatLevels', Set::combine($threat_levels, '{n}.ThreatLevel.id', '{n}.ThreatLevel.name'));
|
||||
$fieldDesc['threat_level'] = Set::combine($threat_levels, '{n}.ThreatLevel.id', '{n}.ThreatLevel.description');
|
||||
$fieldDesc['threat_level_id'] = Set::combine($threat_levels, '{n}.ThreatLevel.id', '{n}.ThreatLevel.description');
|
||||
|
||||
// combobox for analysis
|
||||
$this->set('sharingGroups', $sgs);
|
||||
|
|
Loading…
Reference in New Issue