fix: [mispObject:save_object] Returns error in correct format.

Fix #6598
pull/6605/head
mokaddem 2020-11-17 11:37:40 +01:00
parent 32e7a3a5c3
commit 217abfc2f8
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ class MispObject extends AppModel
} else {
foreach ($templateFields as $k => $v) {
if (!isset($object['Object'][$k])) {
return 'No valid template found and object lacking template information. (' . $k . ')';
return array('template' => array(__('No valid template found and object lacking template information. (%s)', $k)));
}
}
}