mirror of https://github.com/MISP/MISP
Left off from previous commit
parent
7e2a935226
commit
85db894063
|
@ -1599,7 +1599,7 @@ class Attribute extends AppModel {
|
|||
}
|
||||
|
||||
|
||||
public function checkTemplateAttributes($template, &$data, $event_id, $distribution) {
|
||||
public function checkTemplateAttributes($template, &$data, $event_id) {
|
||||
$result = array();
|
||||
$errors = array();
|
||||
$attributes = array();
|
||||
|
@ -1627,7 +1627,7 @@ class Attribute extends AppModel {
|
|||
} else {
|
||||
foreach ($result['attributes'] as &$a) {
|
||||
$a['event_id'] = $event_id;
|
||||
$a['distribution'] = $distribution;
|
||||
$a['distribution'] = 5;
|
||||
$test = $this->checkForValidationIssues(array('Attribute' => $a));
|
||||
if ($test) {
|
||||
foreach ($test['value'] as $e) {
|
||||
|
|
Loading…
Reference in New Issue