Skip to content

Commit

Permalink
Fix header blocks errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Lainow committed Nov 20, 2023
1 parent 30a343f commit eed1eba
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 19 deletions.
1 change: 1 addition & 0 deletions inc/computergroup.class.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

use Glpi\Application\View\TemplateRenderer;

/**
Expand Down
11 changes: 6 additions & 5 deletions inc/computergroupstatic.class.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

use Glpi\Application\View\TemplateRenderer;

/**
Expand Down Expand Up @@ -106,11 +107,11 @@ private static function showForItem(PluginDatabaseinventoryComputerGroup $comput
$used[] = $staticgroup['computers_id'];
if ($computers->getFromDB($staticgroup['computers_id'])) {
$listofcomputers[] = $computers->fields +
[
'entityname' => Entity::getById($computers->fields['entities_id'])->fields['completename'],
'link' => $computers->getLinkURL(),
'idcompgroupstatic' => $staticgroup['id'],
];
[
'entityname' => Entity::getById($computers->fields['entities_id'])->fields['completename'],
'link' => $computers->getLinkURL(),
'idcompgroupstatic' => $staticgroup['id'],
];
}
}
TemplateRenderer::getInstance()->display(
Expand Down
1 change: 1 addition & 0 deletions inc/contactlog.class.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

use Glpi\Application\View\TemplateRenderer;

/**
Expand Down
1 change: 1 addition & 0 deletions inc/credential.class.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

use Glpi\Application\View\TemplateRenderer;

/**
Expand Down
1 change: 1 addition & 0 deletions inc/databaseparam.class.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

use Glpi\Application\View\TemplateRenderer;

/**
Expand Down
13 changes: 7 additions & 6 deletions inc/databaseparam_computergroup.class.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

use Glpi\Application\View\TemplateRenderer;

/**
Expand Down Expand Up @@ -103,12 +104,12 @@ private static function showForItem(PluginDatabaseinventoryDatabaseParam $databa
$used[] = $dbpcgroup['plugin_databaseinventory_computergroups_id'];
if ($dbcgroups->getFromDB($dbpcgroup['plugin_databaseinventory_computergroups_id'])) {
$listofcgroups[] = $dbcgroups->fields +
[
'link' => $dbcgroups->getLinkURL(),
'nbdynamicitems' => $dbcgroups->countDynamicItem(),
'nbstaticitems' => $dbcgroups->countStaticItem(),
'iddbparamcgroup' => $dbpcgroup['id'],
];
[
'link' => $dbcgroups->getLinkURL(),
'nbdynamicitems' => $dbcgroups->countDynamicItem(),
'nbstaticitems' => $dbcgroups->countStaticItem(),
'iddbparamcgroup' => $dbpcgroup['id'],
];
}
}
TemplateRenderer::getInstance()->display(
Expand Down
17 changes: 9 additions & 8 deletions inc/databaseparam_credential.class.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

use Glpi\Application\View\TemplateRenderer;

/**
Expand Down Expand Up @@ -103,14 +104,14 @@ private static function showForItem(PluginDatabaseinventoryDatabaseParam $databa
$used[] = $dbpcredential['plugin_databaseinventory_credentials_id'];
if ($dbcredentials->getFromDB($dbpcredential['plugin_databaseinventory_credentials_id'])) {
$listofcredentials[] = $dbcredentials->fields +
[
'type' => Dropdown::getDropdownName(
PluginDatabaseinventoryCredentialType::getTable(),
$dbcredentials->fields['plugin_databaseinventory_credentialtypes_id']
),
'link' => $dbcredentials->getLinkURL(),
'iddbparamcredential' => $dbpcredential['id'],
];
[
'type' => Dropdown::getDropdownName(
PluginDatabaseinventoryCredentialType::getTable(),
$dbcredentials->fields['plugin_databaseinventory_credentialtypes_id']
),
'link' => $dbcredentials->getLinkURL(),
'iddbparamcredential' => $dbpcredential['id'],
];
}
}
TemplateRenderer::getInstance()->display(
Expand Down

0 comments on commit eed1eba

Please sign in to comment.