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
@@ -34,6 +34,7 @@ use Espo\Core\Exceptions\BadRequest;
use Espo\Core\Exceptions\Error;
use Espo\Core\Exceptions\Forbidden;
use Espo\Core\Exceptions\NotFound;
use Espo\Core\ORM\Repository\Option\SaveOption;
use Espo\Core\Record\ServiceContainer;
use Espo\Core\Select\SearchParams;
use Espo\Core\Select\SelectBuilderFactory;
@@ -154,6 +155,7 @@ class Service
->order([
['order', 'DESC'],
])
->limit()
->build();
/** @var ?KnowledgeBaseArticle $previousEntity */
@@ -170,8 +172,8 @@ class Service
$previousEntity->set('order', $currentIndex);
$this->entityManager->saveEntity($entity);
$this->entityManager->saveEntity($previousEntity);
$this->entityManager->saveEntity($entity, [SaveOption::SILENT => true]);
$this->entityManager->saveEntity($previousEntity, [SaveOption::SILENT => true]);
}
/**
@@ -211,6 +213,7 @@ class Service
->order([
['order', 'ASC'],
])
->limit()
->build();
/** @var ?KnowledgeBaseArticle $nextEntity */
@@ -227,8 +230,8 @@ class Service
$nextEntity->set('order', $currentIndex);
$this->entityManager->saveEntity($entity);
$this->entityManager->saveEntity($nextEntity);
$this->entityManager->saveEntity($entity, [SaveOption::SILENT => true]);
$this->entityManager->saveEntity($nextEntity, [SaveOption::SILENT => true]);
}
/**
@@ -268,6 +271,7 @@ class Service
->order([
['order', 'ASC'],
])
->limit()
->build();
/** @var ?KnowledgeBaseArticle $previousEntity */
@@ -282,7 +286,7 @@ class Service
$entity->set('order', $previousEntity->getOrder() - 1);
$this->entityManager->saveEntity($entity);
$this->entityManager->saveEntity($entity, [SaveOption::SILENT => true]);
}
/**
@@ -322,6 +326,7 @@ class Service
->order([
['order', 'DESC'],
])
->limit()
->build();
/** @var ?KnowledgeBaseArticle $nextEntity */
@@ -336,6 +341,6 @@ class Service
$entity->set('order', $nextEntity->getOrder() + 1);
$this->entityManager->saveEntity($entity);
$this->entityManager->saveEntity($entity, [SaveOption::SILENT => true]);
}
}