From 1f80013b9e3ada034d311dc713d53541c081dac9 Mon Sep 17 00:00:00 2001 From: Abhijit Sulhyan Date: Thu, 12 Dec 2013 11:19:07 -0500 Subject: [PATCH 1/2] Update QuickBaseClient.js Add undefined checks for slist,jht,jsa,options in GenResultsTable --- QuickBaseClient.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/QuickBaseClient.js b/QuickBaseClient.js index 332d689..b891858 100644 --- a/QuickBaseClient.js +++ b/QuickBaseClient.js @@ -485,10 +485,10 @@ this.dbid = RegExp.$1; var action = "API_GenResultsTable"; action = action + "&query=" + query; action = action + "&clist=" + clist; - action = action + "&slist=" + slist; - action = action + "&jht=" + jht; - action = action + "&jsa="+ jsa; - action = action + "&options=" + options; + if (typeof slist !== "undefined") action = action + "&slist=" + slist; + if (typeof jht !== "undefined") action = action + "&jht=" + jht; + if (typeof jsa !== "undefined") action = action + "&jsa="+ jsa; + if (typeof options !== "undefined") action = action + "&options=" + options; return this.GetURL(dbid,action); } From ec019b8b35e63c02609499c410cac717473d83ef Mon Sep 17 00:00:00 2001 From: Abhijit Sulhyan Date: Thu, 12 Dec 2013 12:07:42 -0500 Subject: [PATCH 2/2] * Add undefined checks for slist,jht,jsa,options in GenResultsTable Merge remote-tracking branch 'upstream/master' Conflicts: QuickBaseClient.js --- QuickBaseClient.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/QuickBaseClient.js b/QuickBaseClient.js index 766a44d..5bbaf1c 100644 --- a/QuickBaseClient.js +++ b/QuickBaseClient.js @@ -498,10 +498,10 @@ function QuickBaseClient( qdbServer ) var action = "API_GenResultsTable"; action = action + "&query=" + query; action = action + "&clist=" + clist; - action = action + "&slist=" + slist; - action = action + "&jht=" + jht; - action = action + "&jsa=" + jsa; - action = action + "&options=" + options; + if (typeof slist !== "undefined") action = action + "&slist=" + slist; + if (typeof jht !== "undefined") action = action + "&jht=" + jht; + if (typeof jsa !== "undefined") action = action + "&jsa=" + jsa; + if (typeof options !== "undefined") action = action + "&options=" + options; return this.GetURL( dbid, action ); }