Commit 476ff458cbf20e7b4cf978d17776e242ee22a444

Authored by Elena.Budnik
1 parent dc2aed18

small bug

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
src/InputOutput/WSImpl/Tools/WSJobsManagerClass.php
... ... @@ -154,22 +154,22 @@ class WSJobsManagerClass extends IHMJobsManagerClass {
154 154  
155 155 if ($running)
156 156 {
157   - $rootJobNode = $this->jobXml->getElementById($this->bkgRootNode[$service]);
  157 + $rootJobNode = $this->jobXml->getElementById($this->bkgRootNode[$key]);
158 158 if (!$rootJobNode)
159 159 {
160 160 $rootJobNode = $this->jobXml->createElement("$key");
161   - $rootJobNode->setAttribute('xml:id', $this->bkgRootNode[$service]);
  161 + $rootJobNode->setAttribute('xml:id', $this->bkgRootNode[$key]);
162 162 $jobsInProgress = $this->jobXml->getElementsByTagName('jobsInProgress')->item(0);
163 163 $jobsInProgress->appendChild($rootJobNode);
164 164 }
165 165 }
166 166 else
167 167 {
168   - $rootJobNode = $this->jobXml->getElementById($this->resRootNode[$service]);
  168 + $rootJobNode = $this->jobXml->getElementById($this->resRootNode[$key]);
169 169 if (!$rootJobNode)
170 170 {
171 171 $rootJobNode = $this->jobXml->createElement("$key");
172   - $rootJobNode->setAttribute('xml:id', $this->resRootNode[$service]);
  172 + $rootJobNode->setAttribute('xml:id', $this->resRootNode[$key]);
173 173 $jobsFinished = $this->jobXml->getElementsByTagName('jobsFinished')->item(0);
174 174 $jobsFinished->appendChild($rootJobNode);
175 175 }
... ...