This commit is contained in:
Mirco Wittrien 2020-02-27 13:22:13 +01:00
parent 2e20663bd1
commit e9f2e47527
2 changed files with 2 additions and 2 deletions

View File

@ -1244,7 +1244,7 @@
}
else delete module.BDFDBpatch[funcName][type];
}
if (!BDFDB.ObjectUtils.toArray(module.BDFDBpatch[funcName]).some(patchObj => BDFDB.ObjectUtils.is(patchObj) && !BDFDB.ObjectUtils.isEmpty(patchObj))) {
if (!BDFDB.ObjectUtils.toArray(BDFDB.ObjectUtils.filter(module.BDFDBpatch[funcName], key => WebModulesData.Patchtypes.includes(key), true)).some(patchObj => BDFDB.ObjectUtils.is(patchObj) && !BDFDB.ObjectUtils.isEmpty(patchObj))) {
module[funcName] = module.BDFDBpatch[funcName].originalMethod;
delete module.BDFDBpatch[funcName];
if (BDFDB.ObjectUtils.isEmpty(module.BDFDBpatch)) delete module.BDFDBpatch;

File diff suppressed because one or more lines are too long