{"action":"closed","issue":{"url":"https://api.github.com/repos/InfotelGLPI/racks/issues/22","labels_url":"https://api.github.com/repos/InfotelGLPI/racks/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/InfotelGLPI/racks/issues/22/comments","events_url":"https://api.github.com/repos/InfotelGLPI/racks/issues/22/events","html_url":"https://github.com/InfotelGLPI/racks/issues/22","id":112146089,"number":22,"title":"ajax/dropdownValue.php works incorrectly in GLPI-0.90","user":{"login":"drTr0jan","id":10733191,"avatar_url":"https://avatars.githubusercontent.com/u/10733191?v=3","gravatar_id":"","url":"https://api.github.com/users/drTr0jan","html_url":"https://github.com/drTr0jan","followers_url":"https://api.github.com/users/drTr0jan/followers","following_url":"https://api.github.com/users/drTr0jan/following{/other_user}","gists_url":"https://api.github.com/users/drTr0jan/gists{/gist_id}","starred_url":"https://api.github.com/users/drTr0jan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drTr0jan/subscriptions","organizations_url":"https://api.github.com/users/drTr0jan/orgs","repos_url":"https://api.github.com/users/drTr0jan/repos","events_url":"https://api.github.com/users/drTr0jan/events{/privacy}","received_events_url":"https://api.github.com/users/drTr0jan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-19T13:38:00Z","updated_at":"2015-10-20T07:58:56Z","closed_at":"2015-10-20T07:58:56Z","body":"There's no `$CFG_GLPI[\"dropdown_chars_limit\"]` value in GLPI-0.90. And `substr()` function return NULL if the third parameter is null.\r\nTherefore *ajax/dropdownValue.php* compiles the array incorrectly (with blank *text* values).\r\nYou should use modified `Toolbox:substr()` function, ex:\r\n    \r\n                                        'text'  => Toolbox::substr($data[\"name\"], 0,\r\n                                                         $_SESSION[\"glpidropdown_chars_limit\"]));\r\n    \r\ninstead \r\n    \r\n                                        'text'  => substr($data[\"name\"], 0, \r\n                                                         $CFG_GLPI[\"dropdown_chars_limit\"]));\r\n    \r\nin 142-143 lines."}}