mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #3826 from Steve-Mcl/backport-3728
Do not remove unknown credentials of Subflow Modules (backport to v2.x)
This commit is contained in:
commit
726fac97d2
@ -391,7 +391,6 @@ class Subflow extends Flow {
|
|||||||
name = newName;
|
name = newName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var parent = this.parent;
|
var parent = this.parent;
|
||||||
if (parent) {
|
if (parent) {
|
||||||
var val = parent.getSetting(name);
|
var val = parent.getSetting(name);
|
||||||
|
@ -373,6 +373,7 @@ var api = module.exports = {
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (/^subflow(:|$)/.test(nodeType)) {
|
||||||
for (cred in savedCredentials) {
|
for (cred in savedCredentials) {
|
||||||
if (savedCredentials.hasOwnProperty(cred)) {
|
if (savedCredentials.hasOwnProperty(cred)) {
|
||||||
if (!newCreds.hasOwnProperty(cred)) {
|
if (!newCreds.hasOwnProperty(cred)) {
|
||||||
@ -381,6 +382,7 @@ var api = module.exports = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
var dashedType = nodeType.replace(/\s+/g, '-');
|
var dashedType = nodeType.replace(/\s+/g, '-');
|
||||||
var definition = credentialsDef[dashedType];
|
var definition = credentialsDef[dashedType];
|
||||||
|
Loading…
Reference in New Issue
Block a user