Fix : Set empty td at the correct position when product use unit (#36787)

Co-authored-by: Zakaria Boushaba <z.boushaba@vold.africa>
This commit is contained in:
Zakaria Boushaba 2026-01-05 13:29:21 +01:00 committed by GitHub
parent 39b251f3ca
commit 2a8df9e3b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -489,6 +489,10 @@ if ($resql) {
print '<td class="liste_titre">&nbsp;</td>';
$colspan++;
}
if (getDolGlobalString('PRODUCT_USE_UNITS')) {
print '<td class="liste_titre"></td>';
$colspan++;
}
$parameters = array();
$reshook = $hookmanager->executeHooks('printFieldListOption', $parameters); // Note that $action and $object may have been modified by hook
print $hookmanager->resPrint;
@ -505,10 +509,6 @@ if ($resql) {
print '</td>';
$colspan++;
}
if (getDolGlobalString('PRODUCT_USE_UNITS')) {
print '<td class="liste_titre"></td>';
$colspan++;
}
print '</tr>';
// Line for column titles