fix: [event add] default value of threat level ID correctly injected into the form, fixes #9714

pull/9715/head
iglocska 2024-04-26 10:15:52 +02:00
parent 66532a095c
commit 947dbe1085
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@
'field' => 'threat_level_id',
'class' => 'input',
'options' => $threatLevels,
'default' => Configure::check('MISP.default_event_threat_level') ? Configure::read('MISP.default_event_threat_level') : '4',
'label' => __("Threat Level"),
'stayInLine' => 1,
'type' => 'dropdown'