2
0
forked from Wavyzz/dolibarr

Debug v22

This commit is contained in:
ldestailleur
2025-04-10 20:16:08 +02:00
parent 518eb643bd
commit 5bbce37a10
5 changed files with 35 additions and 29 deletions

View File

@@ -10497,7 +10497,7 @@ class Form
}
//if ($conf->browser->layout == 'phone') $ret.='<div class="clearboth"></div>';
$ret .= '<div class="inline-block floatleft valignmiddle maxwidth750 marginbottomonly refid' . (($shownav && ($previous_ref || $next_ref)) ? ' refidpadding' : '') . '">';
$ret .= '<!-- Ref or ID --><div class="inline-block floatleft valignmiddle maxwidth750 marginbottomonly refid' . (($shownav && ($previous_ref || $next_ref)) ? ' refidpadding' : '') . '">';
// For thirdparty, contact, user, member, the ref is the id, so we show something else
if ($object->element == 'societe') {
@@ -10553,6 +10553,8 @@ class Form
$ret .= $object->label;
} elseif ($object->element == 'ecm_directories') {
$ret .= '';
} elseif ($object->element == 'accountingbookkeeping' && !empty($object->context['mode']) && $object->context['mode'] == '_tmp') {
$ret .= $langs->trans("Draft");
} elseif ($fieldref != 'none') {
$ret .= dol_htmlentities(!empty($object->$fieldref) ? $object->$fieldref : "");
}