From 345da730bf4291fe7ff7b31a00668d65872da95d Mon Sep 17 00:00:00 2001 From: Maarten Haine Date: Tue, 15 Oct 2024 04:18:52 +0000 Subject: [PATCH] fixed that if article removed => bookings cancelled --- .../CudiBundle/Controller/Admin/Sale/ArticleController.php | 5 ----- 1 file changed, 5 deletions(-) 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();