N°931: TagSet Fix Bulk update

This commit is contained in:
Eric
2018-09-13 17:49:25 +02:00
parent ecc5a0bf8a
commit 0c75b98f48
3 changed files with 51 additions and 9 deletions

View File

@@ -5966,8 +5966,15 @@ class AttributeTagSet extends AttributeDBFieldVoid
public function GetAllowedValues($aArgs = array(), $sContains = '')
{
// The check is done when adding / removing tags, no need to have also this check here
return array();
$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;
}
/**