diff --git a/module/CudiBundle/Controller/Admin/Sale/ArticleController.php b/module/CudiBundle/Controller/Admin/Sale/ArticleController.php index 719493029..2f18c4394 100644 --- a/module/CudiBundle/Controller/Admin/Sale/ArticleController.php +++ b/module/CudiBundle/Controller/Admin/Sale/ArticleController.php @@ -293,11 +293,6 @@ public function deleteAction() $idsCancelled[] = $booking->getId(); } - $saleArticle = $this->getSaleArticleEntity(); - if ($saleArticle === null) { - return new ViewModel(); - } - $saleArticle->setIsHistory(true); $this->getEntityManager()->flush();