Skip to content

Commit

Permalink
[CCP-128] when adding concept, id is first added before concept is
Browse files Browse the repository at this point in the history
indexed.
  • Loading branch information
jdamerow committed Jul 14, 2016
1 parent ad1e7cb commit aa21d9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,11 @@ public String addConceptListEntry(ConceptEntry entry)
throw new DictionaryModifyException();
}

indexService.insertConcept(entry);
String id = generateId(CONCEPT_PREFIX);
entry.setId(id);
client.store(entry, DBNames.DICTIONARY_DB);
return id;
indexService.insertConcept(entry);
return id;

}

Expand Down
1 change: 1 addition & 0 deletions Conceptpower+Spring/src/main/webapp/WEB-INF/views/home.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<%@ page session="false"%>

<script type="text/javascript">
//# sourceURL=details.js
$(document).ready(function() {
$('#conceptSearchResult').dataTable({
"bJQueryUI" : true,
Expand Down

0 comments on commit aa21d9f

Please sign in to comment.