mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
fix Uncaught (in promise) TypeError: this.context.getManager is not a function, causing empty status bar
This commit is contained in:
parent
9c4f866382
commit
4f2131358f
@ -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]];
|
||||
|
Loading…
Reference in New Issue
Block a user