update download 2.6 dans le module

This commit is contained in:
Fred Tempez 2022-05-27 20:49:23 +02:00
parent 5c358028c9
commit 899b02cf79
1 changed files with 0 additions and 22 deletions

View File

@ -964,25 +964,3 @@ if ($this->getData(['core', 'dataVersion']) < 11400) {
$this->setData(['core', 'dataVersion', 11400]); $this->setData(['core', 'dataVersion', 11400]);
} }
// Version 11.4.03
if ($this->getData(['core', 'dataVersion']) < 11403) {
// Modification de structure du module download
foreach ($this->getHierarchy(null,null,null) as $parentKey=>$parentValue) {
$pageList [] = $parentKey;
foreach ($parentValue as $childKey) {
$pageList [] = $childKey;
}
}
foreach ($pageList as $parentKey => $parent) {
if ($this->getData(['page', $parent, 'moduleId']) === 'download') {
$tempData = $this->getData(['module', $parent, 'items']);
$this->setData(['module', $parent, 'posts', $tempData]);
$this->deleteData(['module', $parent, 'items']);
}
}
// Mise à jour
$this->setData(['core', 'dataVersion', 11403]);
}