EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
skip version check if @@version
Yuri Kuznetsovb68100df387a
diff --git a/application/Espo/Core/Upgrades/Actions/Base.php b/application/Espo/Core/Upgrades/Actions/Base.phpindex 19cb8ed0a4..ec61ffad3d 100644--- a/application/Espo/Core/Upgrades/Actions/Base.php+++ b/application/Espo/Core/Upgrades/Actions/Base.php@@ -137,6 +137,11 @@ abstract class Basereturn $this->getContainer()->getByClass(Config::class);}+ protected function getSystemConfig(): Config\SystemConfig+ {+ return $this->getContainer()->getByClass(Config\SystemConfig::class);+ }+protected function getEntityManager(): EntityManager{return $this->getContainer()->getByClass(EntityManager::class);@@ -238,7 +243,6 @@ abstract class Base$res = $this->checkPackageType();- // check php versionif (isset($manifest['php'])) {$res &= $this->checkVersions($manifest['php'], System::getPhpVersion(),@@ -246,7 +250,6 @@ abstract class Base);}- // check database versionif (isset($manifest['database'])) {$databaseHelper = $this->getDatabaseHelper();$databaseType = $databaseHelper->getType();@@ -266,10 +269,10 @@ abstract class Base}}- // check acceptableVersions- if (isset($manifest['acceptableVersions'])) {- $version = $this->getConfig()->get('version');+ $version = $this->getSystemConfig()->getVersion();+ // Skip @@version for extension development.+ if (isset($manifest['acceptableVersions']) && $version !== '@@version') {$res &= $this->checkVersions($manifest['acceptableVersions'],$version,@@ -277,7 +280,6 @@ abstract class Base);}- // check dependenciesif (!empty($manifest['dependencies'])) {$res &= $this->checkDependencies($manifest['dependencies']);}