fix: Typo when the validation fails on an object

Fix #4903
pull/4904/head
Raphaël Vinot 2019-07-18 15:40:20 +02:00
parent a1909384d2
commit 98a370c5db
1 changed files with 1 additions and 1 deletions

View File

@ -608,7 +608,7 @@ class MispObject extends AppModel
'action' => 'add',
'user_id' => $user['id'],
'title' => 'Object dropped due to validation for Event ' . $eventId . ' failed: ' . $object['Object']['name'],
'change' => 'Validation errors: ' . json_encode($this->validationErrors) . ' Full Object: ' . json_encode($attribute),
'change' => 'Validation errors: ' . json_encode($this->validationErrors) . ' Full Object: ' . json_encode($object),
));
}
return 'fail';