Merge pull request #21177 from frederic34/patch-4

avoid extra space after idprof
This commit is contained in:
Laurent Destailleur 2022-06-09 12:17:05 +02:00 committed by GitHub
commit a0ad3552c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2672,7 +2672,9 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
print dol_print_profids($object->$key, 'ProfId'.$i, $object->country_code, 1);
if ($object->$key) {
if ($object->id_prof_check($i, $object) > 0) {
print '   '.$object->id_prof_url($i, $object);
if (!empty($object->id_prof_url($i, $object))) {
print '   '.$object->id_prof_url($i, $object);
}
} else {
print ' <span class="error">('.$langs->trans("ErrorWrongValue").')</span>';
}