N°8764 - skip audit when itop reinstalled on top of a backup without env-production to read previous datamodel + phpdoc fix

This commit is contained in:
odain
2026-01-14 10:10:28 +01:00
parent 0582ae1038
commit af2c3b02bc

View File

@@ -717,6 +717,13 @@ class ApplicationInstaller
return false;
}
$sPath = APPROOT.$this->GetTargetDir();
if (!is_dir($sPath)) {
SetupLog::Info("Reinstallation of an iTop from a backup (No ".$this->GetTargetDir()." found). Setup data audit disabled", null, ['skip-data-audit' => $sSkipDataAudit]);
return false;
}
return true;
}
@@ -996,7 +1003,7 @@ class ApplicationInstaller
* @param string $sDataModelVersion
* @param array $aSelectedModuleCodes
* @param array $aSelectedExtensionCodes
* @param array $aParamValues parameters array used to create config file using {@see Config::UpdateFromParams}
* @param string|null $sInstallComment
*
* @param null $sInstallComment
*