fix javascript error when getState called by et2_ready from tutorials, caused by content.data.nm does not exist for tutorials

This commit is contained in:
Ralf Becker 2016-02-22 15:48:19 +00:00
parent 9627e5dd8d
commit 67e6965b1f

View File

@ -161,7 +161,7 @@ app.classes.infolog = AppJS.extend(
if(et2) if(et2)
{ {
var content = this.et2.getArrayMgr('content'); var content = this.et2.getArrayMgr('content');
nm = content? content.data.nm: {}; nm = content && content.data && content.data.nm ? content.data.nm: {};
} }
state.action = nm.action || null; state.action = nm.action || null;