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

Commit 9778941

Browse files
authored
Merge pull request #48 from topcoder-platform/v5-payment-jira-id-patch
set jira Id value when new detail records are added to existing payment
2 parents 5bd9ead + dd8c193 commit 9778941

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/com/topcoder/web/ejb/pacts/PactsServicesBean.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3945,7 +3945,9 @@ private long insertPaymentDetail(Connection c, Payment p, long operatorUserId) t
39453945
ps.setNull(i, Types.DECIMAL);
39463946
}
39473947
ps.setNull(26, Types.DECIMAL);
3948-
ps.setNull(27, Types.VARCHAR);
3948+
// Always set the jira id value. This is to support v5 task payments since they don't satisfy any of the reference types below.
3949+
// ps.setNull(27, Types.VARCHAR);
3950+
setNullableString(ps, 27, p.getHeader().getJiraIssueName());
39493951
switch (BasePayment.getReferenceTypeId(p.getHeader().getTypeId())) {
39503952
case REFERENCE_ALGORITHM_ROUND_ID:
39513953
setNullableLong(ps, 14, p.getHeader().getAlgorithmRoundId());

0 commit comments

Comments
 (0)