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 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', ],