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']);
}
$content = $this->getListContentMigrateTable();
foreach ($content as $className => $fields) {
//We check if all the label was migrated from content table
if (!in_array($className, $blackList)) {
$executeRegenerateContent = true;
break;
if (count($blackList) > 0) {
//If we have the flag MIGRATED_CONTENT we will check the $blackList
$content = $this->getListContentMigrateTable();
foreach ($content as $className => $fields) {
//We check if all the label was migrated from content table
if (!in_array($className, $blackList)) {
$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;
}
}