Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit a30ed53

Browse files
authored
Merge pull request #227 from skyhit/allow_zero_prize
allow zero prize
2 parents 2d1a2d1 + 3ef6c34 commit a30ed53

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/java/main/com/topcoder/direct/services/view/action/contest/launch/SaveDraftContestAction.java

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2010 - 2016 TopCoder Inc., All Rights Reserved.
2+
* Copyright (C) 2010 - 2017 TopCoder Inc., All Rights Reserved.
33
*/
44
package com.topcoder.direct.services.view.action.contest.launch;
55

@@ -265,8 +265,16 @@
265265
* <li>Updated {@link #executeAction()}</li>
266266
* </ul>
267267
* </p>
268-
* @author fabrizyo, FireIce, Veve, isv, GreatKevin, flexme, frozenfx, bugbuka, GreatKevin, Veve
269-
* @version 2.3
268+
*
269+
* <p>
270+
* Version 2.4 (TOPCODER DIRECT - SUPPORT CHALLENGES WITH ZERO PRIZE):
271+
* <ul>
272+
* <li>Updated {@link #populateCompetition(SoftwareCompetition)} method to accept zero prize</li>
273+
* </ul>
274+
* </p>
275+
*
276+
* @author fabrizyo, FireIce, Veve, isv, GreatKevin, flexme, frozenfx, bugbuka, TCSCODER
277+
* @version 2.4
270278
*/
271279
public class SaveDraftContestAction extends ContestAction {
272280
/**
@@ -964,7 +972,7 @@ public boolean evaluate(Object object) {
964972
List<Prize> newPrizes = new ArrayList<Prize>();
965973
if (prizes != null) {
966974
for (Prize prize : prizes) {
967-
if (prize.getPrizeAmount() > 0) {
975+
if (prize.getPrizeAmount() >= 0) {
968976
if (projectId > 0) {
969977
prize.setProjectId(projectId);
970978
} else {

0 commit comments

Comments
 (0)