File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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> " . Task::getTypeName (Session::getPluralNumber ());
71+ $ menu ['links ' ][$ image ] = Task::getSearchURL (false );
72+
7973 $ menu ['icon ' ] = self ::getIcon ();
8074
8175 return $ menu ;
You can’t perform that action at this time.
0 commit comments