fix: [Taxnomy:updateTag] Do not throw an error if taxonomy does not

contain a numerical value
pull/4915/head
mokaddem 2019-07-18 09:54:10 +02:00
parent 8e5def8c35
commit 569837c073
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -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']);