doortts doortts 2017-10-03
mail: Fix commit notificaion mail missing bug
Resource type of some resource is 'PROJECT' not itself.
e.g. Commit is 'PROJECT' resource

When rednering page with per user's language,
it cause problem.

```
java.lang.UnsupportedOperationException
```

This commit fix it.

Derived from 898a250

See: Yona Github issue #302
@15b7e2104743c726d4fd019bbcad891ea7c5b261
app/models/Project.java
--- app/models/Project.java
+++ app/models/Project.java
@@ -504,6 +504,11 @@
                 return ResourceType.PROJECT;
             }
 
+            @Override
+            public Project getProject() {
+                return Project.this;
+            }
+
         };
     }
 
Add a comment
List