fix Uncaught (in promise) TypeError: this.context.getManager is not a function, causing empty status bar

This commit is contained in:
Ralf Becker 2020-10-09 14:05:48 +02:00
parent 9c4f866382
commit 4f2131358f

View File

@ -386,7 +386,8 @@ egwFnct.prototype.setValue = function(_value)
{
var parts = _value.split(".");
var existing_func = parts.pop();
var parent = this.context.getManager().data.context || window.app;
var manager = this.context && this.context.getManager ? this.context.getManager() : null;
var parent = (manager ? manager.data.context : null) || window.app;
for (var i = 1; i < parts.length; ++i) {
if (typeof parent[parts[i]] !== "undefined") {
parent = parent[parts[i]];