From d2c63642b1fca9c271ddf1f74f8379ee0df011e1 Mon Sep 17 00:00:00 2001 From: Stanislas Kita Date: Thu, 5 Feb 2026 09:45:26 +0100 Subject: [PATCH 1/2] Fix(Order_Supplier): Fix SQL Query --- inc/order_supplier.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/order_supplier.class.php b/inc/order_supplier.class.php index 72999982b7..3bdf942b67 100644 --- a/inc/order_supplier.class.php +++ b/inc/order_supplier.class.php @@ -300,7 +300,7 @@ public static function showDeliveries($suppliers_id) $criteria = [ 'SELECT' => [ - 'COUNT(glpi_plugin_order_orders_items.plugin_order_references_id) AS ref', + 'COUNT' => 'glpi_plugin_order_orders_items.plugin_order_references_id AS ref', 'glpi_plugin_order_orders_items.plugin_order_deliverystates_id AS sid', 'glpi_plugin_order_orders.entities_id', ], From 3afccc3cbc77aa02fdcd1f0ccb4d418e4e35134e Mon Sep 17 00:00:00 2001 From: Stanislas Kita Date: Thu, 5 Feb 2026 09:46:38 +0100 Subject: [PATCH 2/2] adapt changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b72ab2723..a46c1cfbf1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ 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] + +- Fix SQL query error when displaying deliveries + ## [2.12.5] - 2026-01-08 ### Fixed