Grid saveConfig can generate bad data (not sure how)
but we will avoid duplicates in loadConfig
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
grid_col.sort = col.sort || 0;
// all saved columns are assumed to be true
grid_col.visible = true;
- new_cols.push(grid_col);
+ if (new_cols
+ .filter(function (c) {
+ return c.name == grid_col.name;
+ }).length == 0
+ )
+ new_cols.push(grid_col);
});
// columns which are not expressed within the saved