From 72931cd0ccbba5420599889c507bf89a74f602c7 Mon Sep 17 00:00:00 2001 From: mozzy11 Date: Fri, 15 Mar 2019 10:17:55 +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