Add tags and display for plugins on GLPI External links & minor fixes

This commit is contained in:
tsmr
2016-01-27 18:04:09 +01:00
parent 946224b913
commit 285a86be4e
4 changed files with 51 additions and 9 deletions

View File

@ -87,8 +87,8 @@ function plugin_example_giveItem($type,$ID,$data,$num) {
switch ($table.'.'.$field) {
case "glpi_plugin_example_examples.name" :
$out = "<a href='".Toolbox::getItemTypeFormURL('PluginExampleExample')."?id=".$data['id']."'>";
$out .= $data["ITEM_$num"];
if ($_SESSION["glpiis_ids_visible"] || empty($data["ITEM_$num"])) {
$out .= $data[$num][0]['name'];
if ($_SESSION["glpiis_ids_visible"] || empty($data[$num][0]['name'])) {
$out .= " (".$data["id"].")";
}
$out .= "</a>";