Skip to content

Commit

Permalink
Fix duplicate tooltip on ref
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 12, 2024
1 parent 12347c7 commit 1139615
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions deploymentserver_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -810,13 +810,14 @@
$cssforfield .= ($cssforfield ? ' ' : '').'nowraponall';
}

if (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real', 'price')) && !in_array($key, array('rowid', 'status')) && empty($val['arrayofkeyval'])) {
if (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real', 'price')) && !in_array($key, array('id', 'rowid', 'ref', 'status')) && empty($val['arrayofkeyval'])) {
$cssforfield .= ($cssforfield ? ' ' : '').'right';
}

if (!empty($arrayfields['t.'.$key]['checked'])) {
print '<td'.($cssforfield ? ' class="'.$cssforfield.((preg_match('/tdoverflow/', $cssforfield) && $key != 'ref') ? ' classfortooltip' : '').'"' : '');
if (preg_match('/tdoverflow/', $cssforfield) && !in_array($val['type'], array('ip', 'url')) && !is_numeric($object->$key)) {
print ' title="'.dol_htmlwithnojs(dol_string_onlythesehtmltags(dol_htmlentitiesbr($object->$key), 1, 1, 1)).'"';
print '<td'.($cssforfield ? ' class="'.$cssforfield.(preg_match('/tdoverflow/', $cssforfield) ? ' classfortooltip' : '').'"' : '');
if (preg_match('/tdoverflow/', $cssforfield) && !in_array($val['type'], array('ref', 'ip', 'url')) && !is_numeric($object->$key)) {
print ' title="'.dol_escape_htmltag($object->$key).'"';
}
print '>';
if ($key == 'servercustomerannounce') {
Expand Down

0 comments on commit 1139615

Please sign in to comment.