forked from extern/egroupware
Set top level owner to top level widget.
Fixes error if read-only expansion runs off the top of the tree, and no owner found.
This commit is contained in:
parent
03c5e925c8
commit
ac653d6c9a
@ -428,11 +428,6 @@ var et2_readonlysArrayMgr = et2_arrayMgr.extend(
|
||||
*/
|
||||
expandName: function(ident)
|
||||
{
|
||||
// this is a temp. workaround to get calendar conflicts working again
|
||||
if (!this.perspectiveData.owner)
|
||||
{
|
||||
return this._super.apply(this, arguments);
|
||||
}
|
||||
return this.perspectiveData.owner.getArrayMgr('content').expandName(ident);
|
||||
}
|
||||
});
|
||||
|
@ -189,9 +189,11 @@ etemplate2.prototype._createArrayManagers = function(_data)
|
||||
break;
|
||||
case "readonlys":
|
||||
result[key] = new et2_readonlysArrayMgr(_data[key]);
|
||||
result[key].perspectiveData.owner = this.widgetContainer;
|
||||
break;
|
||||
default:
|
||||
result[key] = new et2_arrayMgr(_data[key]);
|
||||
result[key].perspectiveData.owner = this.widgetContainer;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user