Fix selectall checkbox in calendar category report sometimes doesn't work

This commit is contained in:
Hadi Nategh 2016-11-17 15:50:17 +01:00
parent d9e509b6ff
commit 9d7ff6e616

View File

@ -3790,7 +3790,8 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
{ {
var content = this.et2.getArrayMgr('content').data; var content = this.et2.getArrayMgr('content').data;
var checkbox = {}; var checkbox = {};
for (var i=1;i<content.grid.length;i++) var grid_index = typeof content.grid.length !='undefined'? content.grid : Object.keys(content.grid);
for (var i=1;i< grid_index.length;i++)
{ {
if (content.grid[i] != null) if (content.grid[i] != null)
{ {