We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b70a25 commit ef68bb6Copy full SHA for ef68bb6
inc/category.class.php
@@ -48,7 +48,7 @@ public static function getTypeName($nb = 1) {
48
49
public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) {
50
$env = new self;
51
- $found_env = $env->find();
+ $found_env = $env->find([static::getForeignKeyField() => $item->getID()]);
52
$nb = count($found_env);
53
return self::createTabEntry(self::getTypeName($nb), $nb);
54
}
0 commit comments