From 9a08540eceacd640a905ec61b78b18779653d80e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Anne?= Date: Thu, 9 Oct 2025 14:55:29 +0200 Subject: [PATCH 1/3] Do not start a session on CRON context see https://github.com/glpi-project/glpi/pull/21383 --- inc/computergroupdynamic.class.php | 1 - 1 file changed, 1 deletion(-) diff --git a/inc/computergroupdynamic.class.php b/inc/computergroupdynamic.class.php index c44daf5..9446688 100644 --- a/inc/computergroupdynamic.class.php +++ b/inc/computergroupdynamic.class.php @@ -181,7 +181,6 @@ public function isDynamicSearchMatchComputer(Computer $computer) ]; if (!isset($_SESSION['glpiname'])) { - Session::start(); $_SESSION['glpiname'] = 'databaseinventory_plugin'; } $search_params = Search::manageParams('Computer', $search); From 8ace21b2fc0f3736d789f63fa586f90401043e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Anne?= Date: Thu, 9 Oct 2025 14:57:03 +0200 Subject: [PATCH 2/3] changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f38b37..5d3dd93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.1.1] + +### Fixed + +- Do not create sessions on CRON context + ## [1.1.0] - 2025-09-29 ### Added From e14d5c885c852186619681fd8e6dd940b1633a50 Mon Sep 17 00:00:00 2001 From: "Romain B." <8530352+Rom1-B@users.noreply.github.com> Date: Thu, 9 Oct 2025 15:11:55 +0200 Subject: [PATCH 3/3] Apply suggestion from @Rom1-B --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d3dd93..59e4bfc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## [1.1.1] +## [UNRELEASED] ### Fixed