Fix infolog error: content is undefined

This commit is contained in:
Hadi Nategh 2015-07-30 10:33:41 +00:00
parent 6c3ff9b792
commit b582716dff

View File

@ -167,8 +167,13 @@ app.classes.infolog = AppJS.extend(
{
// call parent
var state = this._super.apply(this, arguments);
var nm = this.et2 ? this.et2.getArrayMgr('content').data.nm : {};
var nm = {};
if(this.et2)
{
var content = this.et2.getArrayMgr('content');
nm = content? content.data.nm: {};
}
state.action = nm.action || null;
state.action_id = nm.action_id || null;