Skip to content

Commit

Permalink
fix case where node was marked complete where it should not have been (
Browse files Browse the repository at this point in the history
…closes #189)
  • Loading branch information
Bart van den Eijnden committed Oct 28, 2014
1 parent 6d3c07a commit b03ba0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/wpsui.js
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,11 @@ wps.ui.prototype.parentComplete = function(node) {
for (var i=0, ii=this.nodes.length; i<ii; ++i) {
var n = this.nodes[i];
if (n.type === "input" && n.value !== undefined && n._parent === processId) {
values[n._info.identifier.value] = n.value;
if (typeof n.value === "string" && n.value.indexOf(wps.SUBPROCESS) !== -1) {
values[n._info.identifier.value] = n.complete ? n.value : undefined;
} else {
values[n._info.identifier.value] = n.value;
}
}
if (n.id === processId) {
parentNode = n;
Expand Down

0 comments on commit b03ba0e

Please sign in to comment.