mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
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)
|
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);
|
return this.perspectiveData.owner.getArrayMgr('content').expandName(ident);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -189,9 +189,11 @@ etemplate2.prototype._createArrayManagers = function(_data)
|
|||||||
break;
|
break;
|
||||||
case "readonlys":
|
case "readonlys":
|
||||||
result[key] = new et2_readonlysArrayMgr(_data[key]);
|
result[key] = new et2_readonlysArrayMgr(_data[key]);
|
||||||
|
result[key].perspectiveData.owner = this.widgetContainer;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
result[key] = new et2_arrayMgr(_data[key]);
|
result[key] = new et2_arrayMgr(_data[key]);
|
||||||
|
result[key].perspectiveData.owner = this.widgetContainer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user