Merge 581a205121 into b4e866ef66
This commit is contained in:
commit
c57ff5abc3
1 changed files with 2 additions and 2 deletions
|
|
@ -510,7 +510,7 @@ sub node_to_item {
|
||||||
|
|
||||||
# add template value map
|
# add template value map
|
||||||
$valuemaps->{ $map_name }->{ 'mappings' } = [];
|
$valuemaps->{ $map_name }->{ 'mappings' } = [];
|
||||||
foreach(keys %{ $node->{ enums } }) {
|
foreach(sort keys %{ $node->{ enums } }) {
|
||||||
push(@{ $valuemaps->{ $map_name }->{ 'mappings' } }, {
|
push(@{ $valuemaps->{ $map_name }->{ 'mappings' } }, {
|
||||||
'value' => $node->{ enums }->{ $_ },
|
'value' => $node->{ enums }->{ $_ },
|
||||||
'newvalue' => $_
|
'newvalue' => $_
|
||||||
|
|
@ -876,7 +876,7 @@ if (!$oid_root || $oid_root->{ objectID } ne $opts->{ oid }) {
|
||||||
build_template($template, $oid_root, 0);
|
build_template($template, $oid_root, 0);
|
||||||
|
|
||||||
# Convert applications hash to array
|
# Convert applications hash to array
|
||||||
@{ $template->{ applications } } = map { { name => $_ } } keys %{ $template->{ apptags } };
|
@{ $template->{ applications } } = map { { name => $_ } } sort keys %{ $template->{ apptags } };
|
||||||
delete($template->{ apptags });
|
delete($template->{ apptags });
|
||||||
|
|
||||||
# Build XML document
|
# Build XML document
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue