diff --git a/CHANGELOG.md b/CHANGELOG.md index 269579a..04ca6c6 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/). +## [Unreleased] + +### Fixed + +- Fix massive action PDF export redirecting to item list instead of generating the PDF + ## [4.1.2] - 2026-01-08 ### Fixed 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; } }