From f9449b1749110f5d7d78938c3cca7d187dc479d4 Mon Sep 17 00:00:00 2001 From: Adomas Ven Date: Mon, 13 Jun 2016 11:56:39 +0300 Subject: [PATCH] Fixes hidden columns showing on restart. Closes #1030 (#1031) --- chrome/content/zotero/zoteroPane.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 448a2a682..561d61c0b 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -4679,8 +4679,9 @@ var ZoteroPane = new function() if(!id) continue; var elValues = {}; for (let attr of el.getAttribute("zotero-persist").split(/[\s,]+/)) { - var attrValue = el.getAttribute(attr); - elValues[attr] = attrValue; + if (el.hasAttribute(attr)) { + elValues[attr] = el.getAttribute(attr); + } } serializedValues[id] = elValues; }