From 3c68ce0dd11dee6d746e3e22467f15e3f1d3b411 Mon Sep 17 00:00:00 2001 From: morgane Date: Thu, 18 Jun 2026 15:47:45 +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 7786135..63fdd73 100644 --- a/api/index.php +++ b/api/index.php @@ -2851,7 +2851,7 @@ function saveProduct(PDO $db): void { $owner = findDuplicateProductId($db, $input['name'], $input['brand'] ?? '', $barcode, null); if ($owner) { $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=?