Error when activating Workflow 5 from Rest Manager
Hi,
I'm getting a console error when activating workflow 5.
On c.FindLibrary.
Any idea what might be causing this (probably a faulty copy of some file). I already replaced the management.js for the one that's on the install package to no avail.
I do have some customizations on this file but nothing that changes this module. Can someone try to point me in the right direction on solving this?
Thanks
SCRIPT438: Object doesn't support property or method 'findLibrary'
Management.js (7570,10)
c.prototype.applyViewModel = function (b) {
a.prototype.applyViewModel.call(this, b);
for (b = 0; b < this.managedConfigs.length; b++) {
var c = this.managedConfigs[b];
if (this.viewModel.workflowFiveEnabled.get()) {
e = c.findModule({
moduleName: this.workflowHostModuleName
});
if (!e) {
var d = {};
d.moduleName = this.workflowHostModuleName;
d.libraryId = this.workflowHostLibraryId;
(e = (e = c.findModule({
moduleName: "Workflow"
})) && c.getConfiguration().modules.indexOf(e)) ? c.getConfiguration().modules.splice(e + 1, 0, d) : c.getConfiguration().modules.push(d)
}
//// HERE
d = c.findLibrary({
id: this.workflowHostLibraryId
});
d || (d = {}, d.id = this.workflowHostLibraryId, d.async = !0, c.getConfiguration().libraries.push(d))
} else {
var e = c.findModule({
moduleName: this.workflowHostModuleName
}),
d = null;
e && (d = e.libraryId, e = c.getConfiguration().modules.indexOf(e),
0 < e && c.getConfiguration().modules.splice(e, 1));
d && (d = c.findLibrary({
id: d
})) && (d = c.getConfiguration().libraries.indexOf(d), 0 < d && c.getConfiguration().libraries.splice(d, 1))
}
}
this.applyConfigs(this.managedConfigs)
};
0
-
Nevermind, was the management.infrastructure.js that was in a previou version. Case solved
0
Please sign in to leave a comment.
Comments
1 comment