Zwischenstand

This commit is contained in:
Sven Wappler 2021-08-20 13:47:55 +02:00
parent 508d3d2759
commit bb12a00ef5
3 changed files with 5 additions and 2 deletions

View File

@ -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());
}

View File

@ -48,6 +48,7 @@ class BookmarkRepository extends Repository
$this->remove($obj);
}
$this->persistenceManager->persistAll();
}

View File

@ -9,8 +9,8 @@
<ul>
<f:for each="{bookmarks}" as="bookmark">
<li>
<span><f:link.action action="delete" arguments="{object_uid:bookmark.object_uid, tablename: bookmark.tablename}">[Löschen]</f:link.action></span>
<a href="{bookmark.url}">{bookmark.title}</a>
<span class="" style="float: right;"><f:link.action action="delete" arguments="{objectUid:bookmark.object_uid,tablename:bookmark.tablename}">[Löschen]</f:link.action></span>
</li>
</f:for>