{"action":"opened","issue":{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/1534","labels_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/1534/labels{/name}","comments_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/1534/comments","events_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/1534/events","html_url":"https://github.com/fusioninventory/fusioninventory-for-glpi/issues/1534","id":109197037,"number":1534,"title":"No task display in computer's FusInv task tab ","user":{"login":"ddurieux","id":239744,"avatar_url":"https://avatars.githubusercontent.com/u/239744?v=3","gravatar_id":"","url":"https://api.github.com/users/ddurieux","html_url":"https://github.com/ddurieux","followers_url":"https://api.github.com/users/ddurieux/followers","following_url":"https://api.github.com/users/ddurieux/following{/other_user}","gists_url":"https://api.github.com/users/ddurieux/gists{/gist_id}","starred_url":"https://api.github.com/users/ddurieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddurieux/subscriptions","organizations_url":"https://api.github.com/users/ddurieux/orgs","repos_url":"https://api.github.com/users/ddurieux/repos","events_url":"https://api.github.com/users/ddurieux/events{/privacy}","received_events_url":"https://api.github.com/users/ddurieux/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/labels/Category:%20Profiles","name":"Category: Profiles","color":"ededed"},{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/labels/Component:%20For%20junior%20contributor","name":"Component: For junior contributor","color":"ededed"},{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/labels/Component:%20Found%20in%20version","name":"Component: Found in version","color":"ededed"},{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/labels/Priority:%20Normal","name":"Priority: Normal","color":"ededed"},{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/labels/Status:%20Closed","name":"Status: Closed","color":"ededed"},{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/labels/Tracker:%20Bug","name":"Tracker: Bug","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/milestones/48","html_url":"https://github.com/fusioninventory/fusioninventory-for-glpi/milestones/0.84+3.5","labels_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/milestones/48/labels","id":1332128,"number":48,"title":"0.84+3.5","description":null,"creator":{"login":"ddurieux","id":239744,"avatar_url":"https://avatars.githubusercontent.com/u/239744?v=3","gravatar_id":"","url":"https://api.github.com/users/ddurieux","html_url":"https://github.com/ddurieux","followers_url":"https://api.github.com/users/ddurieux/followers","following_url":"https://api.github.com/users/ddurieux/following{/other_user}","gists_url":"https://api.github.com/users/ddurieux/gists{/gist_id}","starred_url":"https://api.github.com/users/ddurieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddurieux/subscriptions","organizations_url":"https://api.github.com/users/ddurieux/orgs","repos_url":"https://api.github.com/users/ddurieux/repos","events_url":"https://api.github.com/users/ddurieux/events{/privacy}","received_events_url":"https://api.github.com/users/ddurieux/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":17,"state":"open","created_at":"2015-09-30T21:27:49Z","updated_at":"2015-09-30T22:54:05Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-09-30T22:54:05Z","updated_at":"2015-09-30T22:54:05Z","closed_at":null,"body":"---\n\n\nAuthor Name: **Walid Nouh** (@wawax)\nOriginal Redmine Issue: 2752, http://forge.fusioninventory.org/issues/2752\nOriginal Date: 2014-10-10\nOriginal Assignee: David Durieux\n\n---\n\nTherere 2 issues with Fusinv Task tab :\r\n\r\n* there's no task display (the related agent has task done and running). It should be displayed but it's not the case\r\n* the Fusinv Task tab should appear if profile and no right on task but right for agent remote control.\r\n\r\nHere is a patch for the second issue :\r\n\r\n```\r\ndiff --git a/inc/task.class.php b/inc/task.class.php\r\nindex e7cb97a..a684ecc 100644\r\n--- a/inc/task.class.php\r\n+++ b/inc/task.class.php\r\n@@ -129,7 +129,7 @@ class PluginFusioninventoryTask extends CommonDBTM {\r\n    function getTabNameForItem(CommonGLPI $item, $withtemplate=0) {\r\n       global $CFG_GLPI;\r\n       $tab_names = array();\r\n-      if (PluginFusioninventoryProfile::haveRight(\"task\", \"r\")) {\r\n+      if (PluginFusioninventoryProfile::haveRight(\"task\", \"r\") || PluginFusioninventoryProfile::haveRight(\"agent\", \"r\")) {\r\n          if ($item->getType() == 'Computer') {\r\n             $tab_names[] = __('FusInv', 'fusioninventory').' '. _n('Task', 'Tasks', 2);\r\n          }\r\n\n```\n\n\n"}}