diff --git a/etemplate/js/et2_dataview_controller.js b/etemplate/js/et2_dataview_controller.js index 9a7b90e6d8..b3aea5c70a 100644 --- a/etemplate/js/et2_dataview_controller.js +++ b/etemplate/js/et2_dataview_controller.js @@ -753,7 +753,7 @@ var et2_dataview_controller = Class.extend({ // Delete as many rows as we have left, invalidate the corresponding // index entry - for (var i = mapIdx; i < this._grid._map.length; i++) + for (var i = mapIdx; i < _idxMap.length; i++) { this._grid.deleteRow(i); if(typeof _idxMap[i] != 'undefined')