From 86215d0094561a2336c64566f3594ccf171b16a1 Mon Sep 17 00:00:00 2001 From: Anton Slyzhko <88829366+antonslyzhko@users.noreply.github.com> Date: Thu, 30 Oct 2025 11:29:47 +0200 Subject: [PATCH 1/2] int getMinValue fix (#3507) Fix getMinValue logic that overwrote valid minValue due to wrong null comparison --- client/src/views/fields/int.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/client/src/views/fields/int.js b/client/src/views/fields/int.js index f2f1cd8a2a..7de3a7deb1 100644 --- a/client/src/views/fields/int.js +++ b/client/src/views/fields/int.js @@ -298,17 +298,11 @@ class IntFieldView extends BaseFieldView { * @return {number|null} */ getMinValue() { - let minValue = this.model.getFieldParam(this.name, 'min') ?? null; - - if (minValue != null) { - minValue = null; - } - if ('min' in this.params) { - minValue = this.params.min; + return this.params.min; } - - return minValue; + + return this.model.getFieldParam(this.name, 'min') ?? null; } // noinspection JSUnusedGlobalSymbols From 90d7b999366fa47bf90332ce7fe398b56400ffc9 Mon Sep 17 00:00:00 2001 From: bfzgaier Date: Thu, 30 Oct 2025 09:27:58 +0100 Subject: [PATCH 2/2] fix Cannot access protected property `id` (#3506) --- application/Espo/Tools/DataPrivacy/Erasor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/Espo/Tools/DataPrivacy/Erasor.php b/application/Espo/Tools/DataPrivacy/Erasor.php index a3d85e9742..72a5f28d4d 100644 --- a/application/Espo/Tools/DataPrivacy/Erasor.php +++ b/application/Espo/Tools/DataPrivacy/Erasor.php @@ -114,7 +114,7 @@ class Erasor implements $this->emailAddressAccessChecker ->checkEdit($this->user, $emailAddress, $entity) ) { - $emailAddress->set(Field::NAME, 'ERASED:' . $emailAddress->id); + $emailAddress->set(Field::NAME, 'ERASED:' . $emailAddress->getId()); $emailAddress->set('optOut', true); $this->entityManager->saveEntity($emailAddress); } @@ -132,7 +132,7 @@ class Erasor implements $this->phoneNumberAccessChecker ->checkEdit($this->user, $phoneNumber, $entity) ) { - $phoneNumber->set(Field::NAME, 'ERASED:' . $phoneNumber->id); + $phoneNumber->set(Field::NAME, 'ERASED:' . $phoneNumber->getId()); $this->entityManager->saveEntity($phoneNumber); }