comparison Lib/IMPL/DOM/Transform/PostToDOM.pm @ 151:e36ffd8c29db

Fixed major bug in conversion from a POST request to the DOM document (when instanceId == 0) minor fixes
author wizard
date Fri, 20 Aug 2010 16:33:37 +0400
parents e6447ad85cb4
children 1e7f03414b65
comparison
equal deleted inserted replaced
150:4369d5458bb6 151:e36ffd8c29db
49 map [$_,/(\w+)(?:\[(\d+)\])?/], keys %$data 49 map [$_,/(\w+)(?:\[(\d+)\])?/], keys %$data
50 ){ 50 ){
51 my $value = $data->{$key->[0]}; 51 my $value = $data->{$key->[0]};
52 my $node = $navi->NavigateCreate($key->[1]); 52 my $node = $navi->NavigateCreate($key->[1]);
53 53
54 $node->nodeProperty(instanceId => $key->[2]) if $key->[2]; 54 $node->nodeProperty(instanceId => $key->[2]) if defined $key->[2];
55 55
56 $this->Transform($value); 56 $this->Transform($value);
57 57
58 $navi->Back(); 58 $navi->Back();
59 } 59 }