[9.2.13] Corrige le codage dans la liste des pages tinymce

This commit is contained in:
Fred Tempez 2019-12-03 14:49:38 +01:00
parent ff33e8f6ab
commit 37769a276f
1 changed files with 4 additions and 4 deletions

View File

@ -561,23 +561,23 @@ class common {
if ($this->getData(['page', $parentId, 'block']) !== 'bar' ) { if ($this->getData(['page', $parentId, 'block']) !== 'bar' ) {
// Boucler sur les enfants et récupérer le tableau children avec la liste des enfants // Boucler sur les enfants et récupérer le tableau children avec la liste des enfants
foreach($childIds as $childId) { foreach($childIds as $childId) {
$children [] = [ 'title' => ' » '. $this->getData(['page', $childId, 'title']) , $children [] = [ 'title' => ' » '. html_entity_decode($this->getData(['page', $childId, 'title']), ENT_QUOTES) ,
'value'=> $rewrite.$childId 'value'=> $rewrite.$childId
]; ];
} }
// Traitement // Traitement
if (empty($childIds)) { if (empty($childIds)) {
// Pas d'enfant, uniuement l'entrée du parent // Pas d'enfant, uniuement l'entrée du parent
$parents [] = ['title' => $this->getData(['page', $parentId, 'title']) , $parents [] = ['title' => html_entity_decode($this->getData(['page', $parentId, 'title']), ENT_QUOTES) ,
'value'=> $rewrite.$parentId 'value'=> $rewrite.$parentId
]; ];
} else { } else {
// Des enfants, on ajoute la page parent en premier // Des enfants, on ajoute la page parent en premier
array_unshift ($children , ['title' => $this->getData(['page', $parentId, 'title']) , array_unshift ($children , ['title' => html_entity_decode($this->getData(['page', $parentId, 'title']), ENT_QUOTES) ,
'value'=> $rewrite.$parentId 'value'=> $rewrite.$parentId
]); ]);
// puis on ajoute les enfants au parent // puis on ajoute les enfants au parent
$parents [] = ['title' => $this->getData(['page', $parentId, 'title']) , $parents [] = ['title' => html_entity_decode($this->getData(['page', $parentId, 'title']), ENT_QUOTES) ,
'value'=> $rewrite.$parentId , 'value'=> $rewrite.$parentId ,
'menu' => $children 'menu' => $children
]; ];