Actualiser assets/js/app.js
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

This commit is contained in:
2026-06-17 16:23:16 +00:00
parent c08798d462
commit 2fb782f8e1
+8
View File
@@ -9043,6 +9043,14 @@ function editProductFromAction() {
const cat = mapToLocalCategory(currentProduct.category, currentProduct.name, currentProduct.brand);
document.getElementById('pf-category').value = cat;
document.getElementById('pf-category').dataset.manuallySet = 'true';
// Forcer l'affichage et l'activation de la catégorie en mode modification
document.getElementById('pf-category').style.display = 'block';
if (document.getElementById('pf-category').closest('.form-group')) {
document.getElementById('pf-category').closest('.form-group').style.display = 'block';
}
document.getElementById('pf-category').disabled = false;
document.getElementById('pf-defqty').dataset.manuallySet = 'true';
// Image preview - not shown in edit mode