fix: [bulksave] valiadate only only works with saveAll()

pull/9438/head
iglocska 2023-11-25 11:31:02 +01:00
parent 10bcdff8ea
commit 1de6b9ec04
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -2686,7 +2686,7 @@ class Attribute extends AppModel
}
// validation only so we can cull the problematic attributes
$this->saveMany($attributes, $saveOptions);
$this->saveAll($attributes, $saveOptions);
if (!empty($this->validationErrors)) {
foreach ($this->validationErrors as $key => $validationError) {
$this->logDropped($user, $attributes[$key], 'edit', $validationError);