diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d66e69d46..ca1842c4f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [UNRELEASED] +### Fixed + +Fix the 'Missing table name' error message on the order. + ## [2.12.1] - 2025-10-14 ### Fixed diff --git a/inc/order.class.php b/inc/order.class.php index 6aee5941f5..26ceb26630 100644 --- a/inc/order.class.php +++ b/inc/order.class.php @@ -2293,8 +2293,8 @@ public function isOverBudget($ID) // Compute all prices for BUDGET $table = $this->getTable(); $query = [ - 'FROM' => `$table`, - 'WHERE' => [`budgets_id` => "{$this->fields['budgets_id']}"], + 'FROM' => $table, + 'WHERE' => ['budgets_id' => $this->fields['budgets_id']], ]; // Get BUDGET