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 24113a3 commit 90a5796Copy full SHA for 90a5796
inc/form_language.class.php
@@ -64,7 +64,13 @@ public function defineTabs($options = []) {
64
65
public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) {
66
if ($item instanceof PluginFormcreatorForm) {
67
- return self::getTypeName(Session::getPluralNumber());
+ $nb = (new DbUtils())->countElementsInTable(self::getTable(), [
68
+ 'plugin_formcreator_forms_id' => $item->getID(),
69
+ ]);
70
+ return self::createTabEntry(
71
+ self::getTypeName(Session::getPluralNumber()),
72
+ $nb
73
+ );
74
}
75
if ($item->getType() == self::class) {
76
$nb = 0;
0 commit comments