Commit cccdd0e9 authored by Mahdi Sellami's avatar Mahdi Sellami
Browse files

Update Idea resource

parent c124c27d
......@@ -59,7 +59,9 @@ public class IdeaResource {
List<KeyWord> dbKeyWord = keywordDAO.findByName(keyword);
if (dbKeyWord.size()>0){
idea.getKeywords().add(dbKeyWord.get(0));
if(idea.getSubcategory()!=null){
idea.getSubcategory().getKeyWords().add(dbKeyWord.get(0));
}
}
else{
KeyWord newKeyWord = new KeyWord(keyword);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment