Debug v18

This commit is contained in:
Laurent Destailleur 2023-07-31 14:17:38 +02:00
parent 66c1ba9ae9
commit e374ebf26b
2 changed files with 4 additions and 3 deletions

View file

@ -753,14 +753,14 @@ class FormCompany extends Form
if ($disabled) {
print ' disabled';
}
print ' selected>' . dol_trunc($obj->name, 24) . '</option>';
print ' selected>' . dol_escape_htmltag($obj->name, 0, 0, '', 0, 1) . '</option>';
$firstCompany = $obj->rowid;
} else {
print '<option value="' . $obj->rowid . '"';
if ($disabled) {
print ' disabled';
}
print '>' . dol_trunc($obj->name, 24) . '</option>';
print '>' . dol_escape_htmltag($obj->name, 0, 0, '', 0, 1) . '</option>';
}
$i++;
}

View file

@ -143,7 +143,8 @@ if ($permission) {
<div class="tagtd nowrap noborderbottom">
<?php
$selectedCompany = GETPOSTISSET("newcompany") ? GETPOST("newcompany", 'int') : (empty($object->socid) ? 0 : $object->socid);
$selectedCompany = $formcompany->selectCompaniesForNewContact($object, 'id', $selectedCompany, 'newcompany', '', 0, '', 'minwidth300imp'); ?>
$selectedCompany = $formcompany->selectCompaniesForNewContact($object, 'id', $selectedCompany, 'newcompany', '', 0, '', 'minwidth300imp'); // This also print the select component
?>
</div>
<div class="tagtd noborderbottom minwidth500imp">
<?php