We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca0eb4e commit 40f8071Copy full SHA for 40f8071
inc/category.class.php
@@ -46,7 +46,7 @@ public static function getTypeName($nb = 1) {
46
47
public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) {
48
$env = new self;
49
- $found_env = $env->find();
+ $found_env = $env->find([static::getForeignKeyField() => $item->getID()]);
50
$nb = count($found_env);
51
return self::createTabEntry(self::getTypeName($nb), $nb);
52
}
0 commit comments