Actualiser api/index.php
CI / PHP Syntax Check (push) Has been cancelled
CI / JavaScript Lint (push) Has been cancelled
CI / Docker Build Test (push) Has been cancelled
CI / Validate Translation Files (push) Has been cancelled
CI / Auto-merge develop → main (push) Has been cancelled
CI / Create GitHub Release (push) Has been cancelled
Security Scan (Trivy) / Trivy — Docker image scan (push) Has been cancelled
Security Scan (Trivy) / Trivy — Filesystem scan (push) Has been cancelled

This commit is contained in:
2026-06-18 15:47:45 +00:00
parent 94f5649183
commit 3c68ce0dd1
+1 -1
View File
@@ -2851,7 +2851,7 @@ function saveProduct(PDO $db): void {
$owner = findDuplicateProductId($db, $input['name'], $input['brand'] ?? '', $barcode, null); $owner = findDuplicateProductId($db, $input['name'], $input['brand'] ?? '', $barcode, null);
if ($owner) { if ($owner) {
$stmt = $db->prepare(" $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=?, default_quantity=?, notes=?, barcode=?, package_unit=?, shopping_name=?,
nutriments_json=?, nutriments_json=?,
updated_at=CURRENT_TIMESTAMP WHERE id=? updated_at=CURRENT_TIMESTAMP WHERE id=?