mirror of https://github.com/MISP/MISP
fix: [Taxnomy:updateTag] Do not throw an error if taxonomy does not
contain a numerical valuepull/4915/head
parent
8e5def8c35
commit
569837c073
|
@ -317,7 +317,7 @@ class Taxonomy extends AppModel
|
|||
if (!in_array('name', $skipUpdateFields)) {
|
||||
$temp['Tag']['name'] = $entry['tag'];
|
||||
}
|
||||
if (!in_array('numerical_value', $skipUpdateFields)) {
|
||||
if (!in_array('numerical_value', $skipUpdateFields) && isset($entry['numerical_value'])) {
|
||||
$temp['Tag']['numerical_value'] = $entry['numerical_value'];
|
||||
}
|
||||
$this->Tag->save($temp['Tag']);
|
||||
|
|
Loading…
Reference in New Issue