Skip to content

Commit bae355a

Browse files
committed
Fix #67
1 parent 4d43319 commit bae355a

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

src/Menu.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,6 @@ public static function getMenuName($nb = 1)
5656
public static function getMenuContent()
5757
{
5858

59-
$url = "";
60-
$default_context = 0;
61-
if (class_exists(Preference::class)) {
62-
$default_context = Preference::checkDefaultType(Session::getLoginUserID());
63-
}
64-
if ($default_context > 0) {
65-
$url = "?itemtype=GlpiPlugin\Tasklists\Kanban&glpi_tab=GlpiPlugin\Tasklists\Kanban$" . $default_context;
66-
}
67-
6859
$menu = [];
6960
$menu['title'] = self::getMenuName(2);
7061
$menu['page'] = Kanban::getSearchURL(false) ;
@@ -76,6 +67,9 @@ public static function getMenuContent()
7667
}
7768
$menu['links']['summary'] = Kanban::getSearchURL(false);
7869

70+
$image = "<i class='ti ti-checklist pointer' title='" . Task::getTypeName(Session::getPluralNumber()) . "'></i>&nbsp;" . Task::getTypeName(Session::getPluralNumber());
71+
$menu['links'][$image] = Task::getSearchURL(false);
72+
7973
$menu['icon'] = self::getIcon();
8074

8175
return $menu;

0 commit comments

Comments
 (0)