Skip to content

Commit

Permalink
Merge pull request #111 from diging/task/CCP-155
Browse files Browse the repository at this point in the history
[CCP-128] when adding concept, id is first added before concept is
  • Loading branch information
jdamerow authored Jul 14, 2016
2 parents 1b47244 + aa21d9f commit 612f359
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 612f359

Please sign in to comment.