Skip to content

EspoCRM – Open Source CRM Application

Ref tester

Yuriia9bd0985934e
diff --git a/install/core/Installer.php b/install/core/Installer.php
index 558dee4765..ef19fe3735 100644
--- a/install/core/Installer.php
+++ b/install/core/Installer.php
@@ -432,14 +432,22 @@ class Installer
public function rebuild(): void
{
try {
- $this->app->getContainer()->getByClass(DataManager::class)->rebuild();
+ $this->rebuildInternal();
} catch (Exception) {
$this->auth();
- $this->app->getContainer()->getByClass(DataManager::class)->rebuild();
+ $this->rebuildInternal();
}
}
+ /**
+ * @throws Error
+ */
+ private function rebuildInternal(): void
+ {
+ $this->app->getContainer()->getByClass(DataManager::class)->rebuild();
+ }
+
public function savePreferences(array $rawPreferences)
{
$preferences = $this->normalizeSettingParams($rawPreferences);