* Fix column name - Colspan problem

* Update DolibarrModules.class.php
This commit is contained in:
Alexandre SPANGARO 2023-11-28 09:18:16 +01:00 committed by GitHub
parent 9d67ca34d3
commit ccfb5e2730
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -953,7 +953,7 @@ while ($i < min($num, $limit)) {
if (!empty($arrayfields['t.doc_ref']['checked'])) { $colspan++; }
if (!empty($arrayfields['t.label_operation']['checked'])) { $colspan++; }
if (!empty($arrayfields['t.date_export']['checked'])) { $colspanend++; }
if (!empty($arrayfields['t.date_validating']['checked'])) { $colspanend++; }
if (!empty($arrayfields['t.date_validated']['checked'])) { $colspanend++; }
if (!empty($arrayfields['t.lettering_code']['checked'])) { $colspanend++; }
if (getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
$colspan++;

View file

@ -585,7 +585,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it
}
// Run complementary sql requests
$num = count($array_sql);
$num = count((array) $array_sql);
for ($i = 0; $i < $num; $i++) {
if (!$err) {
dol_syslog(get_class($this)."::_remove", LOG_DEBUG);