Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/thx/RAP into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjeaf committed May 28, 2014
2 parents 5ebe70b + fc5d085 commit 00fb36b
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,16 @@ public int addProject(Project project) {
for (String account : project.getMemberAccountList()) {
User user = accountDao.getUser(account);
if (user != null) {
project.addMember(user);
boolean addSuccess = project.addMember(user);
if (addSuccess) {
Notification o = new Notification();
o.setTypeId((short)2);
o.setTargetUser(project.getUser());
o.setUser(user);
o.setParam1(new Integer(project.getId()).toString());
o.setParam2(project.getName());
accountMgr.addNotification(o);
}
}
}
int result = projectDao.addProject(project);
Expand Down

0 comments on commit 00fb36b

Please sign in to comment.