From f8fa03e7de83a1731eb68905ba2b9513841ac704 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sun, 11 Oct 2020 19:10:42 +0200 Subject: [PATCH] =?UTF-8?q?Donn=C3=A9es=20par=20d=C3=A9faut=20et=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core.php | 8 ++++++-- core/module/install/ressource/defaultdata.php | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) 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' => [