Skip to content

Commit df7e3ee

Browse files
committed
formating the concpet_id value to a numeric string
1 parent 521d14f commit df7e3ee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

omod/src/main/webapp/tags/conceptField.tag

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
6262
<c:if test="${not empty initialValue}">
6363
// fetch the concept object they passed the value in of and do the normal "select" stuff
64-
DWRConceptService.getConcept("${initialValue}", function(concept) { func${escapedFormFieldId}AutoCompleteOnSelect(concept); });
64+
65+
DWRConceptService.getConcept(convert("${initialValue}"), function(concept) { func${escapedFormFieldId}AutoCompleteOnSelect(concept); });
6566
</c:if>
6667
6768
<c:if test="${not empty showAnswers}">
@@ -76,6 +77,10 @@
7677
7778
})
7879
80+
function convert(conc){
81+
return conc.replace(/[^\d.]/g,'');
82+
}
83+
7984
function func${escapedFormFieldId}AutoCompleteOnSelect(concept, item) {
8085
8186
var conceptId = concept ? concept.conceptId : null

0 commit comments

Comments
 (0)