Données par défaut et update

This commit is contained in:
Fred Tempez 2020-10-11 19:10:42 +02:00
parent 5c35bd3c1d
commit f8fa03e7de
2 changed files with 9 additions and 5 deletions

View File

@ -1449,11 +1449,15 @@ class common {
$articleIds = array_keys(helper::arrayCollumn($this->getData(['module',$parent]), 'publishedOn', 'SORT_DESC'));
foreach ($articleIds as $key => $article) {
// Droits les deux groupes
$this->setData(['module', $parent, $article,'editRights','22']);
$this->setData(['module', $parent, $article,'editConsent','group']);
// Limite de taille 500
$this->setData(['module', $parent, $article,'commentMaxlength', '500']);
// Pas d'approbation des commentaires
$this->setData(['module', $parent, $article,'commentApprove', false ]);
$this->setData(['module', $parent, $article,'commentApproved', false ]);
// pas de notification
$this->setData(['module', $parent, $article,'commentNotification', false ]);
// groupe de notification
$this->setData(['module', $parent, $article,'commentGroupNotification', 3 ]);
}
// Traitement des commentaires
if ( is_array($this->getData(['module', $parent, $article,'comment'])) ) {

View File

@ -665,7 +665,7 @@ class init extends common {
'commentApproved' => false,
'commentClose' => false,
'commentNotification' => false,
'commentGroupNotification' => 1
'commentGroupNotification' => 3
],
'mon-deuxieme-article' => [
'comment' => [],
@ -682,7 +682,7 @@ class init extends common {
'commentApproved' => false,
'commentClose' => false,
'commentNotification' => false,
'commentGroupNotification' => 1
'commentGroupNotification' => 3
],
'mon-troisieme-article' => [
'comment' => [],
@ -699,7 +699,7 @@ class init extends common {
'commentApproved' => false,
'commentClose' => true,
'commentNotification' => false,
'commentGroupNotification' => 1
'commentGroupNotification' => 3
]
],
'galeries' => [