fixed count bug

This commit is contained in:
fred-fri 2012-05-11 13:44:36 +09:00
parent a8dbb0a675
commit 977ebc9f0b

@ -103,7 +103,7 @@ public class ChecklistTemplateServiceImpl extends AbstractQueryService<CheckList
ArrayList<String> questionList = new ArrayList<String>();
questionList.add(new String("Example question (remove this and add relevant questions)"));
clt.setQuestions(questionList);
clt.setTemplateNumber(safeLongToInt(checklistTemplateRepo.count() + 1));
clt.setTemplateNumber(safeLongToInt(checklistTemplateRepo.count()));
return clt;
}