Cas d'une page sans titre

This commit is contained in:
SylvainLelievre 2021-06-25 09:53:18 +02:00
parent b0079ddc1f
commit 65be0c4b6d
1 changed files with 160 additions and 157 deletions

View File

@ -306,6 +306,8 @@ class page extends common {
else {
// Soumission du formulaire
if($this->isPost()) {
// Si le Title n'est pas vide, premier test pour positionner la notification du champ obligatoire
if( $this->getInput('pageEditTitle', helper::FILTER_ID, true) !== null && $this->getInput('pageEditTitle') !== '' ){
// Génére l'ID si le titre de la page a changé
if ( $this->getInput('pageEditTitle') !== $this->getData(['page',$this->getUrl(2),'title']) ) {
$pageId = $this->getInput('pageEditTitle', helper::FILTER_ID, true);
@ -477,6 +479,7 @@ class page extends common {
]);
}
}
}
self::$moduleIds = array_merge( ['' => 'Aucun'] , helper::arrayCollumn(helper::getModules(),'realName','SORT_ASC')); // Pages sans parent
foreach($this->getHierarchy() as $parentPageId => $childrenPageIds) {
if($parentPageId !== $this->getUrl(2)) {