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 de4c74309d
commit de1dc88d98

View File

@ -3802,7 +3802,8 @@ app.classes.calendar = (function(){ "use strict"; return AppJS.extend(
{
var content = this.et2.getArrayMgr('content').data;
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)
{