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