Skip to content

Commit

Permalink
ERM-3436 When exporting a KBART file, the column date_last_issue_onli…
Browse files Browse the repository at this point in the history
…ne should not contain a NULL value in case there is no end year

* make date_last_issue_online null safe in KBart.groovy
  • Loading branch information
CalamityC committed Nov 25, 2024
1 parent 7da8578 commit 7020e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/src/main/groovy/org/olf/export/KBart.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public class KBart implements Serializable {
KBart kbartclone = new KBart();
kbartclone = kbart.clone()
kbartclone.date_first_issue_online = coverage.startDate.toString()
kbartclone.date_last_issue_online = coverage.endDate.toString()
kbartclone.date_last_issue_online = coverage.endDate?.toString() ?: ""

kbartclone.num_first_issue_online = coverage.startIssue
kbartclone.num_last_issue_online = coverage.endIssue
Expand Down

0 comments on commit 7020e54

Please sign in to comment.