Skip to content
Snippets Groups Projects
Commit 601cd54a authored by Ghislain Loas's avatar Ghislain Loas
Browse files

dev #46882 fix items table link add to bookmarks when connected

parent 320ebdff
Branches
Tags
2 merge requests!1797Master,!1786dev #46882 fix items table link add to bookmarks when connected
......@@ -106,10 +106,7 @@ abstract class ZendAfi_View_Helper_Notice_ExemplairesTable_LibraryOrAnnex extend
if(!$user = Class_Users::getIdentity())
return $this->_bookmarkLink($this->_getId());
if(!$user_libraries = $user->getBookmarkedLibraries())
return '';
foreach($user_libraries as $annex_or_lib) {
foreach($user->getBookmarkedLibraries() as $annex_or_lib) {
$annex_or_lib_id = $annex_or_lib->getId();
if($this->_getId() == $annex_or_lib_id)
return $this->_unbookmarkLink($annex_or_lib_id);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment