mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
Force the number of Tags in ormTagSet
This commit is contained in:
@@ -3359,7 +3359,7 @@ EOF
|
||||
$oTagSet = $this->Get($sAttCode);
|
||||
if (is_null($oTagSet))
|
||||
{
|
||||
$oTagSet = new ormTagSet(get_class($this), $sAttCode);
|
||||
$oTagSet = new ormTagSet(get_class($this), $sAttCode, $oAttDef->GetMaxItems());
|
||||
}
|
||||
$oTagSet->ApplyDelta($value);
|
||||
$this->Set($sAttCode, $oTagSet);
|
||||
|
||||
@@ -177,7 +177,7 @@ class WizardHelper
|
||||
else if ($oAttDef instanceof AttributeTagSet) // AttributeDate is derived from AttributeDateTime
|
||||
{
|
||||
$value = json_decode($value, true);
|
||||
$oTagSet = new ormTagSet(get_class($oObj), $sAttCode);
|
||||
$oTagSet = new ormTagSet(get_class($oObj), $sAttCode, $oAttDef->GetMaxItems());
|
||||
$oTagSet->SetValues($value['orig_value']);
|
||||
$oTagSet->ApplyDelta($value);
|
||||
$oObj->Set($sAttCode, $oTagSet);
|
||||
|
||||
Reference in New Issue
Block a user