diff --git a/CHANGELOG.md b/CHANGELOG.md index 8323f16750..82de314579 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fix SQL query error when displaying deliveries - Fix error during generate associated material action +- Fix SQL warning during installation ## [2.12.5] - 2026-01-08 diff --git a/inc/order_item.class.php b/inc/order_item.class.php index 1512a071f9..c3d5d561f6 100644 --- a/inc/order_item.class.php +++ b/inc/order_item.class.php @@ -2162,7 +2162,7 @@ public static function install(Migration $migration) $table . ' as goi', ], 'WHERE' => [ - 'goi.plugin_order_orders_id' => 'go.id', + 'goi.plugin_order_orders_id' => new QueryExpression(DBmysql::quoteName('go.id')), ], ]; foreach ($DB->request($query) as $data) {