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:
@@ -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
|
||||
@@ -29,6 +29,7 @@
|
||||
|
||||
namespace Espo\Tools\DynamicLogic;
|
||||
|
||||
use Espo\Core\Currency\CalculatorUtil;
|
||||
use Espo\Core\Field\Date;
|
||||
use Espo\Core\Field\DateTime;
|
||||
use Espo\Core\Utils\DateTime\SystemClock;
|
||||
@@ -214,18 +215,50 @@ class ConditionChecker
|
||||
}
|
||||
|
||||
if ($type === Type::GreaterThan) {
|
||||
if (is_string($setValue) || is_string($value)) {
|
||||
if (!(is_string($setValue) && is_string($value))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->compare($setValue, $value) > 0;
|
||||
}
|
||||
|
||||
return $setValue > $value;
|
||||
}
|
||||
|
||||
if ($type === Type::LessThan) {
|
||||
if (is_string($setValue) || is_string($value)) {
|
||||
if (!(is_string($setValue) && is_string($value))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->compare($setValue, $value) < 0;
|
||||
}
|
||||
|
||||
return $setValue < $value;
|
||||
}
|
||||
|
||||
if ($type === Type::GreaterThanOrEquals) {
|
||||
if (is_string($setValue) || is_string($value)) {
|
||||
if (!(is_string($setValue) && is_string($value))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->compare($setValue, $value) >= 0;
|
||||
}
|
||||
|
||||
return $setValue >= $value;
|
||||
}
|
||||
|
||||
if ($type === Type::LessThanOrEquals) {
|
||||
if (is_string($setValue) || is_string($value)) {
|
||||
if (!(is_string($setValue) && is_string($value))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $this->compare($setValue, $value) <= 0;
|
||||
}
|
||||
|
||||
return $setValue <= $value;
|
||||
}
|
||||
|
||||
@@ -346,4 +379,20 @@ class ConditionChecker
|
||||
|
||||
return Date::fromDateTime($dateTime);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @throws BadCondition
|
||||
*/
|
||||
private function compare(mixed $arg1, mixed $arg2): int
|
||||
{
|
||||
$arg1 = (string) $arg1;
|
||||
$arg2 = (string) $arg2;
|
||||
|
||||
if (!is_numeric($arg1) || !is_numeric($arg2)) {
|
||||
throw new BadCondition();
|
||||
}
|
||||
|
||||
return CalculatorUtil::compare($arg1, $arg2);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user