From 1de6b9ec04071682bb1f7d4493268dd15d878677 Mon Sep 17 00:00:00 2001 From: iglocska Date: Sat, 25 Nov 2023 11:31:02 +0100 Subject: [PATCH] fix: [bulksave] valiadate only only works with saveAll() --- app/Model/Attribute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Model/Attribute.php b/app/Model/Attribute.php index 90dd77e46..248b4cab2 100644 --- a/app/Model/Attribute.php +++ b/app/Model/Attribute.php @@ -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);