From df7e3ee3817522416f2679bbb2d9699f97287f0a Mon Sep 17 00:00:00 2001 From: mozzy11 Date: Tue, 12 Feb 2019 17:43:04 +0300 Subject: [PATCH] formating the concpet_id value to a numeric string --- omod/src/main/webapp/tags/conceptField.tag | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/omod/src/main/webapp/tags/conceptField.tag b/omod/src/main/webapp/tags/conceptField.tag index 25bd1292..bfbf33ea 100644 --- a/omod/src/main/webapp/tags/conceptField.tag +++ b/omod/src/main/webapp/tags/conceptField.tag @@ -61,7 +61,8 @@ // fetch the concept object they passed the value in of and do the normal "select" stuff - DWRConceptService.getConcept("${initialValue}", function(concept) { func${escapedFormFieldId}AutoCompleteOnSelect(concept); }); + + DWRConceptService.getConcept(convert("${initialValue}"), function(concept) { func${escapedFormFieldId}AutoCompleteOnSelect(concept); }); @@ -76,6 +77,10 @@ }) + function convert(conc){ + return conc.replace(/[^\d.]/g,''); + } + function func${escapedFormFieldId}AutoCompleteOnSelect(concept, item) { var conceptId = concept ? concept.conceptId : null