diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index f3d8b849e..e076c6a01 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -927,7 +927,7 @@ EOF // Attribute description $sDescription = $oAttDef->GetDescription(); $sDescriptionForHTMLTag = utils::HtmlEntities($sDescription); - $sDescriptionHTMLTag = (empty($sDescriptionForHTMLTag)) ? '' : 'class="ibo-has-description" data-tooltip-content="'.$sDescriptionForHTMLTag.'"'; + $sDescriptionHTMLTag = (empty($sDescriptionForHTMLTag) || $sDescription === $oAttDef->GetLabel()) ? '' : 'class="ibo-has-description" data-tooltip-content="'.$sDescriptionForHTMLTag.'"'; $val = array( 'label' => ''.$oAttDef->GetLabel().'', @@ -944,7 +944,7 @@ EOF // Attribute description $sDescription = $oAttDef->GetDescription(); $sDescriptionForHTMLTag = utils::HtmlEntities($sDescription); - $sDescriptionHTMLTag = (empty($sDescriptionForHTMLTag)) ? '' : 'class="ibo-has-description" data-tooltip-content="'.$sDescriptionForHTMLTag.'"'; + $sDescriptionHTMLTag = (empty($sDescriptionForHTMLTag) || $sDescription === $oAttDef->GetLabel()) ? '' : 'class="ibo-has-description" data-tooltip-content="'.$sDescriptionForHTMLTag.'"'; $val = array( 'label' => ''.$oAttDef->GetLabel().'', @@ -3222,7 +3222,7 @@ EOF // - Attribute description $sDescription = $oAttDef->GetDescription(); $sDescriptionForHTMLAttributes = utils::HtmlEntities($sDescription); - $sDescriptionHTMLAttributes = (empty($sDescriptionForHTMLAttributes)) ? '' : 'class="ibo-has-description" data-tooltip-content="'.$sDescriptionForHTMLAttributes.'"'; + $sDescriptionHTMLAttributes = (empty($sDescriptionForHTMLAttributes) || $sDescription === $oAttDef->GetLabel()) ? '' : 'class="ibo-has-description" data-tooltip-content="'.$sDescriptionForHTMLAttributes.'"'; // - Fullscreen toggler for large fields $sFullscreenTogglerTooltip = Dict::S('UI:ToggleFullScreen');