Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Eric Espié
2026-08-21 10:20:27 +02:00
committed by GitHub
parent a3d49d9f87
commit f9507bfb08

View File

@@ -185,7 +185,10 @@ class XMLDataLoader
foreach ($oXml as $sClass => $oXmlObj) {
if (!MetaModel::IsValidClass($sClass)) {
SetupLog::Error("Unknown class - $sClass");
continue; // Trying to load non-existing class, ignore it
if ($bUpdateKeyCacheOnly) {
continue; // A class from the previous data model may no longer exist during an upgrade
}
throw(new Exception("Unknown class - $sClass"));
}
$iSrcId = (int)$oXmlObj['id']; // Mandatory to cast