diff --git a/core/core.php b/core/core.php index 33e8a6ce..9318e597 100644 --- a/core/core.php +++ b/core/core.php @@ -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'])) ) { diff --git a/core/module/install/ressource/defaultdata.php b/core/module/install/ressource/defaultdata.php index 04665a82..e0e42f5b 100644 --- a/core/module/install/ressource/defaultdata.php +++ b/core/module/install/ressource/defaultdata.php @@ -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' => [