[10.0.70.dev] Correction lorsque la homePage est orpheline

This commit is contained in:
fredtempez 2019-11-05 10:26:40 +01:00
parent 6930a2093c
commit c3d396ea4b
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ class common {
const TEMP_DIR = 'site/tmp/';
// Numéro de version
const ZWII_VERSION = '10.0.69.dev';
const ZWII_VERSION = '10.0.70.dev';
public static $actions = [];
public static $coreModuleIds = [
@ -483,7 +483,7 @@ class common {
* @return string
*/
public function getHomePageId () {
foreach($this->getHierarchy(null, true, false) as $parentPageId => $childrenPageIds) {
foreach($this->getHierarchy(null, null, false) as $parentPageId => $childrenPageIds) {
if ($this->getData(['page',$parentPageId,'homePageId']) === true) {
return ($parentPageId);
}