Merge branch '2.4' of github.com:MISP/MISP into develop

pull/9432/head
Sami Mokaddem 2023-11-27 08:48:31 +01:00
commit 7496164783
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 2 deletions

View File

@ -619,7 +619,7 @@ class Attribute extends AppModel
return false;
}
$attribute = $this->beforeVAlidateMassage($attribute);
$attribute = $this->beforeValidateMassage($attribute);
// return true, otherwise the object cannot be saved
return true;
@ -2682,7 +2682,7 @@ class Attribute extends AppModel
// run the beforevalidation massage at this point so we can skip validation in round 2
foreach ($attributes as $k => $attribute) {
$attributes[$k] = $this->beforeVAlidateMassage($attribute);
$attributes[$k] = $this->beforeValidateMassage($attribute);
}
// validation only so we can cull the problematic attributes