mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°2224 - Portal: Enable tooltips for object's attributes description
This commit is contained in:
@@ -1026,6 +1026,13 @@ abstract class AttributeDefinition
|
||||
$oFormField->AddValidator(new Validator($this->GetValidationPattern()));
|
||||
}
|
||||
|
||||
// Description
|
||||
$sAttDescription = $this->GetDescription();
|
||||
if(!empty($sAttDescription))
|
||||
{
|
||||
$oFormField->SetDescription($this->GetDescription());
|
||||
}
|
||||
|
||||
// Metadata
|
||||
$oFormField->AddMetadata('attribute-code', $this->GetCode());
|
||||
$oFormField->AddMetadata('attribute-type', get_class($this));
|
||||
|
||||
Reference in New Issue
Block a user