forked from Wavyzz/dolibarr
Debug v20
This commit is contained in:
@@ -12090,7 +12090,13 @@ function dolGetStatus($statusLabel = '', $statusLabelShort = '', $html = '', $st
|
||||
$statusLabelShort = (empty($statusLabelShort) ? $statusLabel : $statusLabelShort);
|
||||
|
||||
$dolGetBadgeParams['attr']['class'] = 'badge-status';
|
||||
$dolGetBadgeParams['attr']['title'] = empty($params['tooltip']) ? $statusLabel : ($params['tooltip'] != 'no' ? $params['tooltip'] : '');
|
||||
if (empty($dolGetBadgeParams['attr']['title'])) {
|
||||
$dolGetBadgeParams['attr']['title'] = empty($params['tooltip']) ? $statusLabel : ($params['tooltip'] != 'no' ? $params['tooltip'] : '');
|
||||
} else { // If a title was forced from $params['badgeParams']['attr']['title'], we set the class to get it as a tooltip.
|
||||
$dolGetBadgeParams['attr']['class'] .= ' classfortooltip';
|
||||
// And if we use tooltip, we can output title in HTML
|
||||
$dolGetBadgeParams['attr']['title'] = dol_htmlentitiesbr($dolGetBadgeParams['attr']['title'], 1);
|
||||
}
|
||||
|
||||
if ($displayMode == 3) {
|
||||
$return = dolGetBadge((empty($conf->dol_optimize_smallscreen) ? $statusLabel : (empty($statusLabelShort) ? $statusLabel : $statusLabelShort)), '', $statusType, 'dot', $url, $dolGetBadgeParams);
|
||||
|
||||
Reference in New Issue
Block a user