From 54fa9485a53e3dde6f11c78897e9455e4464337e Mon Sep 17 00:00:00 2001 From: Keesun Baik Date: Thu, 25 Sep 2014 10:18:04 +0900 Subject: [PATCH] Fixed to move from group to group --- app/controllers/ProjectApp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/ProjectApp.java b/app/controllers/ProjectApp.java index 7d1e860ea..114c076f4 100644 --- a/app/controllers/ProjectApp.java +++ b/app/controllers/ProjectApp.java @@ -548,7 +548,7 @@ public static Result transferProject(String ownerId, String projectName) { User projectOwner = User.findByLoginId(project.owner); Organization projectOrg = Organization.findByName(project.owner); - if((destOwner != null && destOwner.equals(projectOwner)) || (projectOrg != null && projectOrg.equals(destOrg))) { + if((!destOwner.isAnonymous() && destOwner.equals(projectOwner)) || (projectOrg != null && projectOrg.equals(destOrg))) { flash(Constants.INFO, "project.transfer.has.same.owner"); Form projectForm = form(Project.class).fill(project); return ok(transfer.render("title.projectTransfer", projectForm, project));