This commit is contained in:
Paula Quispe
2017-10-20 17:01:58 -04:00
parent 22702842b9
commit 4173cfac47

View File

@@ -614,19 +614,22 @@ class WorkspaceTools
$blackList = unserialize($configData['CFG_VALUE']); $blackList = unserialize($configData['CFG_VALUE']);
} }
$content = $this->getListContentMigrateTable(); if (count($blackList) > 0) {
//If we have the flag MIGRATED_CONTENT we will check the $blackList
foreach ($content as $className => $fields) { $content = $this->getListContentMigrateTable();
//We check if all the label was migrated from content table foreach ($content as $className => $fields) {
if (!in_array($className, $blackList)) { //We check if all the label was migrated from content table
$executeRegenerateContent = true; if (!in_array($className, $blackList)) {
break; $executeRegenerateContent = true;
break;
}
}
} else {
//If the flag does not exist we will check over the schema
//The $lastContentMigrateTable return false if we need to force regenerate content
if (!$this->getLastContentMigrateTable()) {
$executeRegenerateContent = true;
} }
}
//The $lastContentMigrateTable return false if we need to force regenerate content
if (!$this->getLastContentMigrateTable()) {
$executeRegenerateContent = true;
} }
} }