N°2677 - Add style definition for classes (change code tag)

This commit is contained in:
Eric
2021-01-11 12:18:33 +01:00
parent cdaf431d24
commit 24a6d6b6fd
16 changed files with 274 additions and 275 deletions

View File

@@ -1355,7 +1355,7 @@ EOF
foreach($oValueNodes as $oValue)
{
// New in 3.0 the format of values changed
$sCode = $this->GetMandatoryPropString($oValue, 'enum_code', false);
$sCode = $this->GetMandatoryPropString($oValue, 'code', false);
$aValues[] = $sCode;
$oStyleNode = $oValue->GetOptionalElement('style');
if ($oStyleNode) {
@@ -1415,10 +1415,9 @@ CSS;
$oValueNodes = $oValues->getElementsByTagName('value');
$aValues = [];
$aStyledValues = [];
foreach($oValueNodes as $oValue)
{
foreach($oValueNodes as $oValue) {
// New in 3.0 the format of values changed
$sCode = $this->GetMandatoryPropString($oValue, 'enum_code', false);
$sCode = $this->GetMandatoryPropString($oValue, 'code', false);
$aValues[] = $sCode;
$oStyleNode = $oValue->GetOptionalElement('style');
if ($oStyleNode) {