mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°931 Fix import TagSet failing with multiple code values (using CLI with no_localize=1)
This commit is contained in:
@@ -9626,7 +9626,7 @@ class AttributeTagSet extends AttributeSet
|
||||
{
|
||||
$sSepItem = MetaModel::GetConfig()->Get('tag_set_item_separator');
|
||||
}
|
||||
if ($bLocalizedValue && !empty($sProposedValue))
|
||||
if (!empty($sProposedValue))
|
||||
{
|
||||
$oTagSet = new ormTagSet(MetaModel::GetAttributeOrigin($this->GetHostClass(), $this->GetCode()),
|
||||
$this->GetCode(), $this->GetMaxItems());
|
||||
@@ -9636,7 +9636,7 @@ class AttributeTagSet extends AttributeSet
|
||||
{
|
||||
if (!empty($sTagLabel))
|
||||
{
|
||||
$aCodes[] = $oTagSet->GetTagFromLabel($sTagLabel);
|
||||
$aCodes[] = ($bLocalizedValue) ? $oTagSet->GetTagFromLabel($sTagLabel) : $sTagLabel;
|
||||
}
|
||||
}
|
||||
$sProposedValue = implode(' ', $aCodes);
|
||||
|
||||
Reference in New Issue
Block a user