Skip to content

Commit

Permalink
fixed that if article removed => bookings cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
Maarten Haine committed Oct 15, 2024
1 parent a746d60 commit 345da73
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions module/CudiBundle/Controller/Admin/Sale/ArticleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 345da73

Please sign in to comment.