From bc5c61a7127cfbccf681c8c99722ebceb4f0b5f8 Mon Sep 17 00:00:00 2001
From: juanf <juanf>
Date: Tue, 24 Mar 2015 09:11:25 +0000
Subject: [PATCH] SSDM-180 : PAPER/PETER - ELN UI - Storing tables
 configuration by user (Pair programming)

SVN: 33717
---
 .../newbrowser/1/as/webapps/newbrowser/html/lib/grid/js/Grid.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/lib/grid/js/Grid.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/lib/grid/js/Grid.js
index 9a10d837976..a359024aa3f 100644
--- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/lib/grid/js/Grid.js
+++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/lib/grid/js/Grid.js
@@ -63,7 +63,7 @@ $.extend(Grid.prototype, {
 				.attr("value", column.property)
 				.attr("style", "margin-left: 5px;");
 			
-			if(thisGrid.columnsToShow) {
+			if(thisGrid.columnsToShow && Object.keys(thisGrid.columnsToShow).length !== 0) {
 				if((thisGrid.columnsToShow[column.property] === true)) { //If settings are present
 					checkbox.attr("checked", "checked");
 				}
-- 
GitLab