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=?