From af8d022b92e747185bf0e6e5eee05e23312c36b7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 21 Dec 2021 02:49:10 +0100 Subject: [PATCH] Fix link of module bookmarks --- htdocs/bookmarks/bookmarks.lib.php | 2 +- htdocs/core/bookmarks_page.php | 18 +++++++++++++----- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/htdocs/bookmarks/bookmarks.lib.php b/htdocs/bookmarks/bookmarks.lib.php index 67816321198..83b5b69283f 100644 --- a/htdocs/bookmarks/bookmarks.lib.php +++ b/htdocs/bookmarks/bookmarks.lib.php @@ -66,7 +66,7 @@ function printDropdownBookmarksList() // Url to list bookmark - $listbtn = ''; + $listbtn = ''; $listbtn .= img_picto('', 'bookmark', 'class="paddingright"').$langs->trans('Bookmarks').''; // Url to go on create new bookmark page diff --git a/htdocs/core/bookmarks_page.php b/htdocs/core/bookmarks_page.php index 9c3b5abb266..dde8df5f82e 100644 --- a/htdocs/core/bookmarks_page.php +++ b/htdocs/core/bookmarks_page.php @@ -111,12 +111,20 @@ if (empty($conf->bookmark->enabled)) { if ($i == 0) { $bookmarkList .= '
'.$langs->trans("NoBookmarks").''; $bookmarkList .= '

'; - - $newcardbutton = ''; - $newcardbutton .= dolGetButtonTitle($langs->trans('New'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/bookmarks/card.php?action=create&backtopage='.urlencode(DOL_URL_ROOT.'/bookmarks/list.php'), '', !empty($user->rights->bookmark->creer)); - - $bookmarkList .= '
'.$newcardbutton.'
'; } + + $newcardbutton = ''; + $newcardbutton .= dolGetButtonTitle($langs->trans('New'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/bookmarks/card.php?action=create&backtopage='.urlencode(DOL_URL_ROOT.'/bookmarks/list.php'), '', !empty($user->rights->bookmark->creer)); + + // Url to list bookmark + $bookmarkList .= '
'; + $bookmarkList .= ''; + $bookmarkList .= img_picto('', 'bookmark', 'class="paddingright"').$langs->trans('Bookmarks').''; + $bookmarkList .= '
'; + $bookmarkList .= '
'; + + $bookmarkList .= '
'.$newcardbutton.'
'; + $bookmarkList .= '';