Skip to content

Commit 51397d3

Browse files
authored
Merge pull request #258 from topcoder-platform/dev-maven
dev-maven to master-maven
2 parents eac08cc + 9641142 commit 51397d3

File tree

4 files changed

+10
-14
lines changed

4 files changed

+10
-14
lines changed

src/main/java/com/cronos/onlinereview/actions/projectreview/BaseProjectReviewAction.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,12 @@ protected String saveGenericReview(DynamicModel reviewForm, HttpServletRequest r
10211021
}
10221022
}
10231023

1024+
if (scorecardTypeName.equals("Iterative Review") && !verification.getSubmission().getSubmissionStatus()
1025+
.getName()
1026+
.equals(com.topcoder.onlinereview.component.project.phase.handler.Constants.SUBMISSION_STATUS_ACTIVE)) {
1027+
return ActionsHelper.produceErrorReport(
1028+
this, request, permName, "Error.SubmissionNotActive", null);
1029+
}
10241030
// Get "My" resource for the appropriate phase
10251031
Resource myResource = ActionsHelper.getMyResourceForPhase(request, phase);
10261032
// If no resource found for particular phase, try to find resource without phase assigned

src/main/resources/MessageResources.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1262,6 +1262,7 @@ Error.NotASubmission=The file you are trying to download is not a submission.
12621262
Error.NotASubmission2=The file you are trying to delete is not a submission. You can delete only submissions by this action.
12631263
Error.NotASubmission3=The file you are trying to advance is not a submission. You can advance only submissions by this action.
12641264
Error.SubmissionDeleted=The submission you are trying to remove has already been deleted.
1265+
Error.SubmissionNotActive=The submission is not active.
12651266
Error.OnlyOneFinalFix=You cannot upload more than one final fix during the same Final Fix phase.
12661267
Error.NotAFinalFix=The file you are trying to download is not a Final Fix.
12671268
Error.NotTestCases=The file you are trying to download is not Test Cases.

web/includes/inc_header_reskin.jsp

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,6 @@
2525
o=t.getElementsByTagName(e)[0];i.async=1;i.type="module";i.src=a;o.parentNode.insertBefore(i,o)
2626
}(window,document,"script",scriptURL,"tcUniNav");
2727
28-
var userId = `${userId}`;
29-
if (userId !== '-1') {
30-
var handle = "${userHandle}";
31-
}
32-
var initials = handle ? handle.substr(0, 2).toUpperCase() : '';
33-
34-
var user = {
35-
userId,
36-
initials,
37-
handle
38-
};
3928
4029
var signInUrl = "https://accounts-auth0.topcoder.com/?retUrl=https://software.topcoder.com/review";
4130
@@ -55,7 +44,7 @@
5544
type: 'tool',
5645
toolName: 'Review',
5746
toolRoot: '/',
58-
user: handle ? user : null,
47+
user: 'auto',
5948
signOut() {
6049
window.location.replace(signOutUrl)
6150
},

web/includes/project/project_phase_reskin.jsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,9 +1180,9 @@
11801180
<c:choose>
11811181
<c:when test="${review.committed}">
11821182
<c:choose>
1183-
<c:when test="${isSubmitter and not group.checkpointReviewFinished}">
1183+
<%-- <c:when test="${isSubmitter and not group.checkpointReviewFinished}">
11841184
<or:text key="Pending"/>
1185-
</c:when>
1185+
</c:when> --%>
11861186
<c:when test="${isAllowedToViewCheckpointReview}">
11871187
<a href="<or:url value='/actions/ViewCheckpointReview?rid=${review.id}' />">
11881188
${orfn:displayScore(pageContext.request, review.score)}</a>

0 commit comments

Comments
 (0)