diff --git a/src/SWP/Bundle/CoreBundle/EventSubscriber/HandleArticleChangeSubscriber.php b/src/SWP/Bundle/CoreBundle/EventSubscriber/HandleArticleChangeSubscriber.php index 60020a0a9..d797614ce 100644 --- a/src/SWP/Bundle/CoreBundle/EventSubscriber/HandleArticleChangeSubscriber.php +++ b/src/SWP/Bundle/CoreBundle/EventSubscriber/HandleArticleChangeSubscriber.php @@ -69,11 +69,12 @@ private function refreshLists(ArticleInterface $article) /** @var ContentListItemInterface $item */ foreach ($contentListItems as $item) { $contentList = $item->getContentList(); - if (!$article->isPublished()) { - $this->manager->remove($item); - } else { + //Removing check if article is published + //if (!$article->isPublished()) { + // $this->manager->remove($item); + //} else { $contentLists[$contentList->getId()] = $contentList; - } + //} $item->getContentList()->setContentListItemsUpdatedAt(new \DateTime('now')); if ($contentList instanceof TimestampableCancelInterface) { $contentList->cancelTimestampable(true);