From 10db110ea38bd68159a80a05f32a7a0823a099aa Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 18 Jul 2018 10:21:34 -0600 Subject: [PATCH] Keep selection manager's index map set on reset --- api/js/etemplate/et2_dataview_controller.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_dataview_controller.js b/api/js/etemplate/et2_dataview_controller.js index dc33cf2ede..20cc6ee88c 100644 --- a/api/js/etemplate/et2_dataview_controller.js +++ b/api/js/etemplate/et2_dataview_controller.js @@ -147,7 +147,7 @@ var et2_dataview_controller = (function(){ "use strict"; return Class.extend({ // Free selection manager this._selectionMgr.clear(); - + // Clear object manager this._objectManager.clear(); @@ -184,6 +184,8 @@ var et2_dataview_controller = (function(){ "use strict"; return Class.extend({ reset: function () { // Throw away all internal mappings and reset the timestamp this._indexMap = {}; + // Update selection manager, it uses this by reference + this._selectionMgr.setIndexMap(this._indexMap); // Clear the grid this._grid.clear();