mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #3828 from Steve-Mcl/backport-3762
Fix storing subflow credential type when input has multiple types (backport to v2.x)
This commit is contained in:
commit
72661aa159
@ -983,6 +983,17 @@ RED.subflow = (function() {
|
|||||||
default: inputType
|
default: inputType
|
||||||
})
|
})
|
||||||
input.typedInput('value',val.value)
|
input.typedInput('value',val.value)
|
||||||
|
if (inputType === 'cred') {
|
||||||
|
if (node.credentials) {
|
||||||
|
if (node.credentials[tenv.name]) {
|
||||||
|
input.typedInput('value', node.credentials[tenv.name]);
|
||||||
|
} else if (node.credentials['has_'+tenv.name]) {
|
||||||
|
input.typedInput('value', "__PWRD__")
|
||||||
|
} else {
|
||||||
|
input.typedInput('value', "");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
input.val(val.value)
|
input.val(val.value)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user