Commit 4b616b6df4684a460cf7cc1bd86b59b5d1ffadab
1 parent
1627a2dd
Exists in
master
and in
66 other branches
Fix table / dim association
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
src/Request/ParamInfoRequestClass.php
@@ -96,8 +96,8 @@ class ParamInfoRequestClass extends RequestAbstractClass | @@ -96,8 +96,8 @@ class ParamInfoRequestClass extends RequestAbstractClass | ||
96 | if ($dimsNodes->length > 0) { | 96 | if ($dimsNodes->length > 0) { |
97 | $dimsNode = $dimsNodes->item(0); | 97 | $dimsNode = $dimsNodes->item(0); |
98 | $result['dimensions'] = array( | 98 | $result['dimensions'] = array( |
99 | - 'dim_1' => $dimsNode->getAttribute("dim_1"), | ||
100 | - 'dim_2' => $dimsNode->getAttribute("dim_2") | 99 | + 'dim1' => $dimsNode->getAttribute("dim_1"), |
100 | + 'dim2' => $dimsNode->getAttribute("dim_2") | ||
101 | ); | 101 | ); |
102 | } | 102 | } |
103 | 103 | ||
@@ -122,7 +122,7 @@ class ParamInfoRequestClass extends RequestAbstractClass | @@ -122,7 +122,7 @@ class ParamInfoRequestClass extends RequestAbstractClass | ||
122 | $result['tables'] = array(); | 122 | $result['tables'] = array(); |
123 | foreach ($tablesNode->getElementsByTagName("table") as $tableNode) { | 123 | foreach ($tablesNode->getElementsByTagName("table") as $tableNode) { |
124 | $tableResult = array( | 124 | $tableResult = array( |
125 | - 'relatedDim' => $tableNode->getAttribute("relatedDim"), | 125 | + 'relatedDim' => ($tableNode->getAttribute("relatedDim") == "dim_1" ? "dim1" : "dim2"), |
126 | 'name' => $tableNode->getAttribute("name"), | 126 | 'name' => $tableNode->getAttribute("name"), |
127 | 'units' => $tableNode->getAttribute("units"), | 127 | 'units' => $tableNode->getAttribute("units"), |
128 | 'channels' => array() | 128 | 'channels' => array() |