File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77
88## [ UNRELEASE]
99
10+ ### Fixed
11+
12+ - Fix ` Undefined array key "glpiname" ` during database inventory task.
13+
1014## [ 1.0.3] - 2025-07-10
1115
1216### Fixed
Original file line number Diff line number Diff line change @@ -178,6 +178,10 @@ public function isDynamicSearchMatchComputer(Computer $computer)
178178 'value ' => $ computer ->fields ['id ' ],
179179 ];
180180
181+ if (!isset ($ _SESSION ['glpiname ' ])) {
182+ Session::start ();
183+ $ _SESSION ['glpiname ' ] = 'databaseinventory_plugin ' ;
184+ }
181185 $ search_params = Search::manageParams ('Computer ' , $ search );
182186 $ data = Search::prepareDatasForSearch ('Computer ' , $ search_params );
183187 Search::constructSQL ($ data );
You can’t perform that action at this time.
0 commit comments