mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
N°931 integrate TagSet widget
This commit is contained in:
@@ -5964,18 +5964,11 @@ class AttributeTagSet extends AttributeDBFieldVoid
|
||||
return ($val1 == $val2);
|
||||
}
|
||||
|
||||
public function GetAllowedValues($aArgs = array(), $sContains = '')
|
||||
{
|
||||
$sAttCode = $this->GetCode();
|
||||
$sClass = MetaModel::GetAttributeOrigin($this->GetHostClass(), $sAttCode);
|
||||
$aAllowedTags = TagSetFieldData::GetAllowedValues($sClass, $sAttCode);
|
||||
$aAllowedValues = array();
|
||||
foreach($aAllowedTags as $oAllowedTag)
|
||||
{
|
||||
$aAllowedValues[$oAllowedTag->Get('tag_code')] = $oAllowedTag->Get('tag_label');
|
||||
}
|
||||
return $aAllowedValues;
|
||||
}
|
||||
public function GetAllowedValues($aArgs = array(), $sContains = '')
|
||||
{
|
||||
// The check is done when adding / removing tags, no need to have also this check here
|
||||
return array();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $aCols
|
||||
|
||||
Reference in New Issue
Block a user