From c08798d4623983d9bbbb624e2d132eedb410294f Mon Sep 17 00:00:00 2001 From: morgane Date: Wed, 17 Jun 2026 14:10:10 +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 911627f..e19767a 100644 --- a/api/index.php +++ b/api/index.php @@ -2758,7 +2758,7 @@ function saveProduct(PDO $db): void { } $stmt = $db->prepare(" - INSERT INTO products (barcode, name, brand, category, image_url, unit, default_quantity, notes, package_unit, shopping_name, nutriments_json) + INSERT INTO products (name, brand, category, image_url, unit, default_quantity, notes, barcode, package_unit, shopping_name, nutriments_json) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) "); $stmt->execute($params);