From bacb98b4eb622c7a9572c6f1ea56e5a0a9ab55bf Mon Sep 17 00:00:00 2001 From: morgane Date: Thu, 18 Jun 2026 11:12:44 +0000 Subject: [PATCH] Actualiser api/index.php --- api/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/index.php b/api/index.php index 0c7f332..e4affff 100644 --- a/api/index.php +++ b/api/index.php @@ -2806,7 +2806,7 @@ function saveProduct(PDO $db): void { try { if ($id) { $stmt = $db->prepare(" - UPDATE products SET name=?, brand=?, category=?, image_url=?, unit=?, + UPDATE products SET name=?, brand=?, category=?, subcategory=?, image_url=?, unit=?, default_quantity=?, notes=?, barcode=?, package_unit=?, shopping_name=?, nutriments_json=?, updated_at=CURRENT_TIMESTAMP WHERE id=?