Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

- Fix foreign key constraint in SQL query.
- Fix `Undefined array key "glpiname"` during database inventory task.
- Fix SQL error when add computer to static group .

## [1.0.3] - 2025-07-10

Expand Down
14 changes: 7 additions & 7 deletions inc/computergroupstatic.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ private static function showForItem(PluginDatabaseinventoryComputerGroup $comput
TemplateRenderer::getInstance()->display(
'@databaseinventory/computergroupstatic.html.twig',
[
'item' => PluginDatabaseinventoryDatabaseParam::getById($ID),
'computerslist' => $listofcomputers,
'groupstaticclass' => PluginDatabaseinventoryComputerGroupStatic::class,
'canread' => $computergroup->can($ID, READ),
'canedit' => $computergroup->can($ID, UPDATE),
'canadd' => $computergroup->canAddItem('itemtype'),
'used' => $used,
'item' => PluginDatabaseinventoryComputerGroup::getById($ID),
'computerslist' => $listofcomputers,
'groupstaticclass' => PluginDatabaseinventoryComputerGroupStatic::class,
'canread' => $computergroup->can($ID, READ),
'canedit' => $computergroup->can($ID, UPDATE),
'canadd' => $computergroup->canAddItem('itemtype'),
'used' => $used,
],
);

Expand Down
2 changes: 1 addition & 1 deletion templates/computergroupstatic.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@
</form>
{% endif %}
{% endif %}
{% endblock %}
{% endblock %}