We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c52464b commit 12b6d80Copy full SHA for 12b6d80
2 files changed
CHANGELOG.md
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
8
## [UNRELEASE]
9
10
+### Fixed
11
+
12
+- Fix `Undefined array key "glpiname"` during database inventory task.
13
14
## [1.0.3] - 2025-07-10
15
16
### Fixed
inc/computergroupdynamic.class.php
@@ -178,6 +178,10 @@ public function isDynamicSearchMatchComputer(Computer $computer)
178
'value' => $computer->fields['id'],
179
];
180
181
+ if (!isset($_SESSION['glpiname'])) {
182
+ Session::start();
183
+ $_SESSION['glpiname'] = 'databaseinventory_plugin';
184
+ }
185
$search_params = Search::manageParams('Computer', $search);
186
$data = Search::prepareDatasForSearch('Computer', $search_params);
187
Search::constructSQL($data);
0 commit comments