Skip to content

Commit

Permalink
Fix the hierarchical markup for the conditionals
Browse files Browse the repository at this point in the history
  • Loading branch information
heshanlk committed Apr 1, 2017
1 parent d04f180 commit 404cba5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Plugin/migrate/source/d7/D7Webform.php
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,10 @@ private function buildFormElements($nid) {
$markup .= "$indent '#states':\n";
$markup .= "$indent $key:\n";
foreach($values as $value){
$markup .= "$indent " . Yaml::dump($value, 2, 10 + $indent);
foreach($value as $name => $item){
$markup .= "$indent " . Yaml::dump($name, 2, 2) . ":\n";
$markup .= "$indent " . Yaml::dump($item, 2, 2);
}
}
}
}
Expand Down

0 comments on commit 404cba5

Please sign in to comment.