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
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:
@@ -9043,6 +9043,14 @@ function editProductFromAction() {
|
|||||||
const cat = mapToLocalCategory(currentProduct.category, currentProduct.name, currentProduct.brand);
|
const cat = mapToLocalCategory(currentProduct.category, currentProduct.name, currentProduct.brand);
|
||||||
document.getElementById('pf-category').value = cat;
|
document.getElementById('pf-category').value = cat;
|
||||||
document.getElementById('pf-category').dataset.manuallySet = 'true';
|
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';
|
document.getElementById('pf-defqty').dataset.manuallySet = 'true';
|
||||||
|
|
||||||
// Image preview - not shown in edit mode
|
// Image preview - not shown in edit mode
|
||||||
|
|||||||
Reference in New Issue
Block a user