mirror of https://github.com/MISP/MISP
fix: [bulksave] valiadate only only works with saveAll()
parent
10bcdff8ea
commit
1de6b9ec04
|
@ -2686,7 +2686,7 @@ class Attribute extends AppModel
|
||||||
}
|
}
|
||||||
|
|
||||||
// validation only so we can cull the problematic attributes
|
// validation only so we can cull the problematic attributes
|
||||||
$this->saveMany($attributes, $saveOptions);
|
$this->saveAll($attributes, $saveOptions);
|
||||||
if (!empty($this->validationErrors)) {
|
if (!empty($this->validationErrors)) {
|
||||||
foreach ($this->validationErrors as $key => $validationError) {
|
foreach ($this->validationErrors as $key => $validationError) {
|
||||||
$this->logDropped($user, $attributes[$key], 'edit', $validationError);
|
$this->logDropped($user, $attributes[$key], 'edit', $validationError);
|
||||||
|
|
Loading…
Reference in New Issue