From f48a6f26022ce9204b2d46850f8eb00519cbe003 Mon Sep 17 00:00:00 2001 From: Julien Durand Date: Fri, 11 Sep 2026 15:34:04 +0200 Subject: [PATCH 1/2] fix: appliance asset pdf generation --- inc/appliance.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/appliance.class.php b/inc/appliance.class.php index bbee4b13..62852ef8 100644 --- a/inc/appliance.class.php +++ b/inc/appliance.class.php @@ -219,7 +219,8 @@ public static function pdfForAppliance(PluginPdfSimplePDF $pdf, Appliance $appli $pdf->displayTitle('' . _sn('Associated item', 'Associated items', 2) . ''); $result = $DB->request([ - 'SELECT' => 'DISTINCT itemtype', + 'SELECT' => 'itemtype', + 'DISTINCT' => true, 'FROM' => 'glpi_appliances_items', 'WHERE' => ['appliances_id' => $instID], ]); From 8f1ea1b7a9633626a1d8a41e2953a98db2c87c71 Mon Sep 17 00:00:00 2001 From: Julien Durand Date: Fri, 11 Sep 2026 15:37:42 +0200 Subject: [PATCH 2/2] chore: changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index acb810ef..64aa6b35 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 + +- Internal server error when generating appliance asset pdf + ## [4.1.5] - 2026-09-01 ### Fixed