From 7ec37c3f469c113630066db4703661abbf75568d Mon Sep 17 00:00:00 2001 From: MyuTsu Date: Wed, 22 Apr 2026 15:48:09 +0200 Subject: [PATCH 1/3] fix(massiveaction): fix PDF export redirecting to item list --- inc/common.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/common.class.php b/inc/common.class.php index 04fad82..a883614 100644 --- a/inc/common.class.php +++ b/inc/common.class.php @@ -615,8 +615,8 @@ public static function processMassiveActionsForOneItemtype( } $_SESSION['plugin_pdf']['type'] = $item->getType(); $_SESSION['plugin_pdf']['tab_id'] = serialize($tab_id); - echo ""; + $ma->itemDone($item->getType(), $ids, MassiveAction::ACTION_OK); + $ma->setRedirect($CFG_GLPI['root_doc'] . '/plugins/pdf/front/export.massive.php'); break; } } From bf5b077fc6cc1dbf597b6aa85de1400cc23edc6d Mon Sep 17 00:00:00 2001 From: MyuTsu Date: Wed, 22 Apr 2026 16:24:32 +0200 Subject: [PATCH 2/3] Update CHANGELOG.md --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 269579a..7669b71 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/). +## [4.1.3] - Unreleased + +### Fixed + +- Fix massive action PDF export redirecting to item list instead of generating the PDF + ## [4.1.2] - 2026-01-08 ### Fixed From 2b62371197971e80a8cf227553cfd55857e57609 Mon Sep 17 00:00:00 2001 From: "Romain B." <8530352+Rom1-B@users.noreply.github.com> Date: Wed, 22 Apr 2026 16:55:26 +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 7669b71..04ca6c6 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/). -## [4.1.3] - Unreleased +## [Unreleased] ### Fixed