Fixed issues when adding/removing modules during the setup:

- When adding modules: the data model was not refreshed in the cache before attempting to load "structure" (or "sample") data
- When removing a module: remaining (invalid) triggers were still used.

SVN:trunk[1401]
This commit is contained in:
Denis Flaven
2011-08-01 10:30:22 +00:00
parent 05338caa23
commit aa6d7578d1
3 changed files with 7 additions and 36 deletions

View File

@@ -210,7 +210,8 @@ try
throw(new Exception("File $sFileName does not exist"));
}
$oDataLoader = new XMLDataLoader(TMP_CONFIG_FILE); // When called by the wizard, the final config is not yet there
InitDataModel(TMP_CONFIG_FILE, false); // When called by the wizard, the final config is not yet there
$oDataLoader = new XMLDataLoader();
if ($sSessionStatus == 'start')
{
$oChange = MetaModel::NewObject("CMDBChange");