Add some checking to handle if etemplate is unloading

This commit is contained in:
Nathan Gray 2013-09-17 23:24:56 +00:00
parent dadf3046c2
commit a43e26f8b3

View File

@ -302,7 +302,12 @@ app.home = AppJS.extend(
*/
set_content: function(id, list_values)
{
try {
var portlet = app.home.portlet_container.getWidgetById(id);
} catch(e) {
egw.debug("log", "Tried to set home list content with no etemplate");
return;
};
if(portlet != null)
{
var list = portlet.getWidgetById(id+'-list');