# HG changeset patch # User one # Date 1349301273 -32400 # Node ID 0e8b6eda0a0e01cfcd103290b32904691164a81d # Parent 853bc291a3bba68ffaebffcb12dec38acee766cf commit diff -r 853bc291a3bb -r 0e8b6eda0a0e app/models/ClaimModel.java --- a/app/models/ClaimModel.java Thu Oct 04 06:28:24 2012 +0900 +++ b/app/models/ClaimModel.java Thu Oct 04 06:54:33 2012 +0900 @@ -292,7 +292,7 @@ } private String checkChildClaimStatus(String...labels) { - Iterable iter = getVertex(Direction.OUT, labels); + Iterable iter = getVertex(Direction.OUT, labels); if (iter == null) { return null; } @@ -332,10 +332,15 @@ } private String checkAllChildsStatus() { - String status1 = checkQuestionAndSuggestionClaims(); - String status2 = checkRefutationClaims(); - if (status1.equals(status2)) { - return status1; + String queAndSugStatus = checkQuestionAndSuggestionClaims(); + String refutationStatus = checkRefutationClaims(); + if (refutationStatus.equals(FAILED)) { + return FAILED; + } + if (queAndSugStatus.equals(refutationStatus)) { + return queAndSugStatus; + } else if (refutationStatus.equals(FAILED)) { + return FAILED; } else { return UNKNOWN; }