{"action":"created","issue":{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/1954","repository_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi","labels_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/1954/labels{/name}","comments_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/1954/comments","events_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/1954/events","html_url":"https://github.com/fusioninventory/fusioninventory-for-glpi/issues/1954","id":187151962,"number":1954,"title":"name of unmanaged device - plugins/fusioninventory/inc/networkport.class.php","user":{"login":"abmteam","id":8278642,"avatar_url":"https://avatars.githubusercontent.com/u/8278642?v=3","gravatar_id":"","url":"https://api.github.com/users/abmteam","html_url":"https://github.com/abmteam","followers_url":"https://api.github.com/users/abmteam/followers","following_url":"https://api.github.com/users/abmteam/following{/other_user}","gists_url":"https://api.github.com/users/abmteam/gists{/gist_id}","starred_url":"https://api.github.com/users/abmteam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abmteam/subscriptions","organizations_url":"https://api.github.com/users/abmteam/orgs","repos_url":"https://api.github.com/users/abmteam/repos","events_url":"https://api.github.com/users/abmteam/events{/privacy}","received_events_url":"https://api.github.com/users/abmteam/received_events","type":"User","site_admin":false},"labels":[{"id":214271977,"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/labels/feature","name":"feature","color":"207de5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/milestones/55","html_url":"https://github.com/fusioninventory/fusioninventory-for-glpi/milestones/0.91+1.0","labels_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/milestones/55/labels","id":1647818,"number":55,"title":"0.91+1.0","description":"","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":19,"closed_issues":13,"state":"open","created_at":"2016-03-16T12:52:08Z","updated_at":"2016-11-04T08:54:30Z","due_on":"2016-10-30T00:00:00Z","closed_at":null},"comments":1,"created_at":"2016-11-03T18:25:53Z","updated_at":"2016-11-04T12:19:06Z","closed_at":null,"body":"file ->  plugins/fusioninventory/inc/networkport.class.php\r\n\r\nWhen an unmanaged device is found, sometimes it gets no name.\r\n\r\nAdding the last 5 lines below, it will try to use the manufacturer name when param sysname doesnt exist.\r\n\r\n         // Add unmanaged device because not find device\r\n         $input = array();\r\n         $input['mac'] = $sysmac;\r\n         if (isset($params['sysname'])) {\r\n            $input['name'] = $params['sysname'];\r\n         } else if (isset($params['name'])) {\r\n          $input['name'] = $params['name'];\r\n         } else {\r\n         $input['name'] = PluginFusioninventoryInventoryExternalDB::getManufacturerWithMAC($sysmac);\r\n        }"},"comment":{"url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/comments/258417020","html_url":"https://github.com/fusioninventory/fusioninventory-for-glpi/issues/1954#issuecomment-258417020","issue_url":"https://api.github.com/repos/fusioninventory/fusioninventory-for-glpi/issues/1954","id":258417020,"user":{"login":"abmteam","id":8278642,"avatar_url":"https://avatars.githubusercontent.com/u/8278642?v=3","gravatar_id":"","url":"https://api.github.com/users/abmteam","html_url":"https://github.com/abmteam","followers_url":"https://api.github.com/users/abmteam/followers","following_url":"https://api.github.com/users/abmteam/following{/other_user}","gists_url":"https://api.github.com/users/abmteam/gists{/gist_id}","starred_url":"https://api.github.com/users/abmteam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abmteam/subscriptions","organizations_url":"https://api.github.com/users/abmteam/orgs","repos_url":"https://api.github.com/users/abmteam/repos","events_url":"https://api.github.com/users/abmteam/events{/privacy}","received_events_url":"https://api.github.com/users/abmteam/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T12:19:06Z","updated_at":"2016-11-04T12:19:06Z","body":"Hi,\r\nthe same can be done in the file \"plugins/fusioninventory/inc/inventorynetworkequipmentlib.class.php\" [about line 442].\r\n\r\nAdding the last line below, it will try to use the manufacturer name.\r\n\r\n              if (!isset($macNotPhone_id)) {\r\n                  // Create unknown ports\r\n                  $unknown_infos = array();\r\n                  $unknown_infos[\"name\"] = '';\r\n                  $unknown_infos[\"name\"] = PluginFusioninventoryInventoryExternalDB::getManufacturerWithMAC($macNotPhone);"}}
{"actor":{"display_login":"abmteam"}}