mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°1323: Bug fix for a crash with the error message: class 'cmdbAbstractObject' not found, in the last screen of the setup under very specific circumstances.
SVN:2.4[5334]
This commit is contained in:
@@ -2478,7 +2478,11 @@ class WizStepDone extends WizardStep
|
|||||||
$oPage->add('</tr></table>');
|
$oPage->add('</tr></table>');
|
||||||
|
|
||||||
$oConfig = new Config(utils::GetConfigFilePath());
|
$oConfig = new Config(utils::GetConfigFilePath());
|
||||||
require_once(APPROOT.'env-production/core/main.php'); // For ModuleXMLParameters
|
// Load the data model only, in order to load env-production/core/main.php to get the XML parameters (needed by GetModuleSettings below)
|
||||||
|
// But main.php may also contain classes (defined without any module), and thus requiring the full data model
|
||||||
|
// to be loaded to prevent "class not found" errors...
|
||||||
|
$oProductionEnv = new RunTimeEnvironment($sTargetEnvironment);
|
||||||
|
$oProductionEnv->InitDataModel($oConfig, true);
|
||||||
$sIframeUrl = $oConfig->GetModuleSetting('itop-hub-connector', 'setup_url', '');
|
$sIframeUrl = $oConfig->GetModuleSetting('itop-hub-connector', 'setup_url', '');
|
||||||
|
|
||||||
if ($sIframeUrl != '')
|
if ($sIframeUrl != '')
|
||||||
|
|||||||
Reference in New Issue
Block a user