Skip to content

OBPIH-7475 bugfix null check when formatting date in GSPs#5489

Merged
ewaterman merged 2 commits intodevelopfrom
bug/OBPIH-7475-2
Sep 9, 2025
Merged

OBPIH-7475 bugfix null check when formatting date in GSPs#5489
ewaterman merged 2 commits intodevelopfrom
bug/OBPIH-7475-2

Conversation

@ewaterman
Copy link
Member

✨ Description of Change

Link to GitHub issue or Jira ticket: https://pihemr.atlassian.net/browse/OBPIH-7475

Description: N/A


📷 Screenshots & Recordings (optional)

image

@ewaterman ewaterman self-assigned this Sep 9, 2025
@github-actions github-actions bot added type: bug Addresses unintended behaviours of the app domain: frontend Changes or discussions relating to the frontend UI labels Sep 9, 2025
Comment on lines 37 to 40
if (attrs.date == null) {
out << ''
return
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not move it into the switch case?

Copy link
Member Author

@ewaterman ewaterman Sep 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried. You can't switch on null before Java 17 😞

EDIT: wait, maybe I'm wrong... Groovy might be able to handle it

@ewaterman ewaterman merged commit 2989a3f into develop Sep 9, 2025
2 of 4 checks passed
@ewaterman ewaterman deleted the bug/OBPIH-7475-2 branch September 9, 2025 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: frontend Changes or discussions relating to the frontend UI type: bug Addresses unintended behaviours of the app

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants