chore: Update copyright year from 2025 to 2026 across core files

- Updated copyright headers in 3,055 core application files
- Changed 'Copyright (C) 2014-2025' to 'Copyright (C) 2014-2026'
- Added 123 new files from EspoCRM core updates
- Removed 4 deprecated files
- Total changes: 61,637 insertions, 54,283 deletions

This is a routine maintenance update for the new year 2026.
This commit is contained in:
2026-02-07 16:05:21 +01:00
parent 6a8a4a2882
commit 127fa6503b
6468 changed files with 564781 additions and 31179 deletions

View File

@@ -3,7 +3,7 @@
* This file is part of EspoCRM.
*
* EspoCRM Open Source CRM application.
* Copyright (C) 2014-2025 EspoCRM, Inc.
* Copyright (C) 2014-2026 EspoCRM, Inc.
* Website: https://www.espocrm.com
*
* This program is free software: you can redistribute it and/or modify
@@ -196,12 +196,6 @@ class FieldValidationManager
$data ??= (object) [];
$entityType = $entity->getEntityType();
$result = $this->processValidator($entity, $field, $type, new Data($data));
if (!$result) {
return false;
}
$validationValue = $value ?? $this->fieldUtil->getEntityTypeFieldParam($entityType, $field, $type);
$isMandatory = in_array($type, $this->getMandatoryValidationList($entityType, $field));
@@ -213,12 +207,19 @@ class FieldValidationManager
$validationValue = true;
}
$skip = !$isMandatory && (is_null($validationValue) || $validationValue === false);
if ($skip) {
if (
!$isMandatory &&
($validationValue === null || $validationValue === false)
) {
return true;
}
$result = $this->processTypeValidator($entity, $field, $type, new Data($data));
if (!$result) {
return false;
}
$result1 = $this->processFieldCheck($entityType, $type, $entity, $field, $validationValue);
if (!$result1) {
@@ -234,7 +235,7 @@ class FieldValidationManager
return true;
}
private function processValidator(Entity $entity, string $field, string $type, Data $data): bool
private function processTypeValidator(Entity $entity, string $field, string $type, Data $data): bool
{
$validator = $this->getValidator($entity->getEntityType(), $field, $type);