From bb12a00ef5b1dc7deb392aa4bdc6f35889e88292 Mon Sep 17 00:00:00 2001 From: Sven Wappler Date: Fri, 20 Aug 2021 13:47:55 +0200 Subject: [PATCH] Zwischenstand --- Classes/Controller/BookmarkController.php | 4 +++- Classes/Domain/Repository/BookmarkRepository.php | 1 + Resources/Private/Templates/Bookmark/PersonalList.html | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Classes/Controller/BookmarkController.php b/Classes/Controller/BookmarkController.php index 0f4cc4d..75357da 100644 --- a/Classes/Controller/BookmarkController.php +++ b/Classes/Controller/BookmarkController.php @@ -87,7 +87,9 @@ class BookmarkController extends AbstractController $user = $this->getCurrentUser(); $this->bookmarkRepository->removeByUserTablenameObjectUid($user['uid'], $tablename, $objectUid); - $this->forward('personalList'); + + $this->redirectToUri($this->uriBuilder->reset()->buildFrontendUri()); + } diff --git a/Classes/Domain/Repository/BookmarkRepository.php b/Classes/Domain/Repository/BookmarkRepository.php index a3da679..4021c2e 100644 --- a/Classes/Domain/Repository/BookmarkRepository.php +++ b/Classes/Domain/Repository/BookmarkRepository.php @@ -48,6 +48,7 @@ class BookmarkRepository extends Repository $this->remove($obj); } + $this->persistenceManager->persistAll(); } diff --git a/Resources/Private/Templates/Bookmark/PersonalList.html b/Resources/Private/Templates/Bookmark/PersonalList.html index 97526f7..035229c 100644 --- a/Resources/Private/Templates/Bookmark/PersonalList.html +++ b/Resources/Private/Templates/Bookmark/PersonalList.html @@ -9,8 +9,8 @@