mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
N°4199 - Add <code> to EnumSet values to fix XML conversion
This commit is contained in:
@@ -1711,10 +1711,12 @@ CSS;
|
||||
{
|
||||
$oValues = $oField->GetUniqueElement('values');
|
||||
$oValueNodes = $oValues->getElementsByTagName('value');
|
||||
$aValues = array();
|
||||
$aValues = [];
|
||||
foreach($oValueNodes as $oValue)
|
||||
{
|
||||
$aValues[] = $oValue->textContent;
|
||||
// New in 3.0 the format of values changed
|
||||
$sCode = $this->GetMandatoryPropString($oValue, 'code', false);
|
||||
$aValues[] = $sCode;
|
||||
}
|
||||
$sValues = '"'.implode(',', $aValues).'"';
|
||||
$aParameters['allowed_values'] = 'null';
|
||||
|
||||
Reference in New Issue
Block a user