From 9ec216ab1f7d2b85e9aa71201f0b20584ebec010 Mon Sep 17 00:00:00 2001 From: RupaliM Date: Thu, 7 Mar 2019 16:56:21 -0500 Subject: [PATCH] Bug-1.2:Query parameter issue --- Front-End/src/js/glycoprotein_search.js | 4 ++-- Front-End/src/js/protein_search.js | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Front-End/src/js/glycoprotein_search.js b/Front-End/src/js/glycoprotein_search.js index 4f5b46a15..fc67e345d 100644 --- a/Front-End/src/js/glycoprotein_search.js +++ b/Front-End/src/js/glycoprotein_search.js @@ -291,14 +291,14 @@ function searchJson(input_query_type, mass_min, mass_max, input_organism, input_ // sequences.type = input_sequence.type; // sequences.aa_sequence = input_sequence.aa_sequence; // } - var glycans = null; + var glycans = {}; if (input_glycan) { glycans = { relation: input_relation, glytoucan_ac: input_glycan } } - var organisms = ''; + var organisms ={}; if (input_organism.id != "0") { organisms.id = input_organism.id; organisms.name = input_organism.name; diff --git a/Front-End/src/js/protein_search.js b/Front-End/src/js/protein_search.js index b94395619..6108e9214 100644 --- a/Front-End/src/js/protein_search.js +++ b/Front-End/src/js/protein_search.js @@ -277,7 +277,7 @@ function ajaxProteinSearchSuccess() { */ function searchJson(input_query_type, mass_min, mass_max, input_organism, input_protein_id, input_refseq_id, input_gene_name, input_protein_name, input_pathway_id, input_sequence) { - var sequences = null; + var sequences = {}; if (input_sequence) { sequences = { "type": "exact", @@ -285,7 +285,7 @@ function searchJson(input_query_type, mass_min, mass_max, input_organism, input_ } } - var organisms = ''; + var organisms = {}; if (input_organism.id != "0") { organisms.id = input_organism.id; organisms.name = input_organism.name; @@ -297,7 +297,6 @@ function searchJson(input_query_type, mass_min, mass_max, input_organism, input_ "min": parseInt(mass_min), "max": parseInt(mass_max) }, - sequence: sequences ?sequences:undefined, organism: organisms ?organisms:undefined, refseq_ac: input_refseq_id? input_refseq_id: undefined,