Commit c344b37f6c5aa217b1bd2922ab65473b0dd6388a
1 parent
113fbe39
Exists in
master
and in
109 other branches
process simuParam deleteFromTree
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
php/RemoteDataCenter/RemoteParamManager.php
... | ... | @@ -319,8 +319,12 @@ class RemoteParamManager |
319 | 319 | return array("err" => "No such id : $id"); |
320 | 320 | |
321 | 321 | $tagName = $nodeToDelete->tagName; |
322 | + $topTag = "dataCenter"; //"dataRoot"; | |
322 | 323 | |
323 | - while ( $tagName != "dataRoot" ) // "dataCenter" ? | |
324 | + if ($obj->nodeType && $obj->nodeType == "remoteSimuParam") // FMI_GUMICS case | |
325 | + $topTag = "simulationRegion"; | |
326 | + | |
327 | + while ( $tagName != $topTag ) // "dataCenter" ? | |
324 | 328 | { |
325 | 329 | $parentNode = $nodeToDelete->parentNode; |
326 | 330 | $parentNode->removeChild($nodeToDelete); |
... | ... |