Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Commit

Permalink
Merge branch 'fix/issue-1807' of dlab/hive
Browse files Browse the repository at this point in the history
from pull-request 1292

* refs/heads/fix/issue-1807:
  Fix compile error after e7589df

Reviewed-by: 이응준 <eungjun.yi@navercorp.com>
  • Loading branch information
laziel committed Aug 14, 2014
2 parents e7589df + e308c07 commit d9449d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/controllers/OrganizationApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -263,14 +263,14 @@ public static Result leave(String organizationName) {
ValidationResult result = validateForLeave(organizationName);

if (!result.hasError()) {
OrganizationUser.delete(Organization.findByOrganizationName(organizationName).id, UserApp.currentUser().id);
OrganizationUser.delete(Organization.findByName(organizationName).id, UserApp.currentUser().id);
}

return result.getResult();
}

public static ValidationResult validateForLeave(String organizationName) {
Organization organization = Organization.findByOrganizationName(organizationName);
Organization organization = Organization.findByName(organizationName);

if (organization == null) {
return new ValidationResult(notFound(getJsonErrorMsg("organization.member.unknownOrganization")), true);
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/SearchApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public static Result searchInAGroup(String organizationName) {
return badRequest();
}

Organization organization = Organization.findByOrganizationName(organizationName);
Organization organization = Organization.findByName(organizationName);
User user = UserApp.currentUser();
SearchType searchType = SearchType.getValue(searchTypeValue);

Expand Down

0 comments on commit d9449d0

Please sign in to comment.