Skip to content

Commit

Permalink
Fix dolGetStatus unused
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-john committed Oct 3, 2019
1 parent 77f666a commit 027c822
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions htdocs/core/lib/functions.lib.php
Expand Up @@ -8109,6 +8109,11 @@ function dolGetStatus($statusLabel = '', $statusLabelShort = '', $html = '', $st

$return = '';

$dolGetBadgeParams = array();
if(!empty($params['badgeParams'])){
$dolGetBadgeParams = $params['badgeParams'];
}

// image's filename are still in French
$statusImg=array(
'status0' => 'statut0'
Expand Down Expand Up @@ -8164,13 +8169,13 @@ function dolGetStatus($statusLabel = '', $statusLabelShort = '', $html = '', $st
$statusLabelShort = !empty($statusLabelShort)?$statusLabelShort:$statusLabel;

if ($displayMode == 3) {
$return = dolGetBadge($statusLabel, '', $statusType, 'dot', $url);
$return = dolGetBadge($statusLabel, '', $statusType, 'dot', $url, $dolGetBadgeParams);
}
elseif ($displayMode === 5) {
$return = dolGetBadge($statusLabelShort, $html, $statusType, '', $url);
$return = dolGetBadge($statusLabelShort, $html, $statusType, '', $url, $dolGetBadgeParams);
}
else {
$return = dolGetBadge($statusLabel, $html, $statusType, '', $url);
$return = dolGetBadge($statusLabel, $html, $statusType, '', $url, $dolGetBadgeParams);
}
}

Expand Down

0 comments on commit 027c822

Please sign in to comment.