Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [DHIS2-18459] Re-use obtained maxTeLimit (2.41) #19590

Merged
merged 4 commits into from
Jan 3, 2025
Merged

Conversation

ameenhere
Copy link
Contributor

@ameenhere ameenhere commented Jan 3, 2025

Fixing another fix #19240 (which does fix the nullPointer issue, but does not consider a small functional gap)

The mentioned PR does not consider if the maxTeLimit is obtained from TrackedEntityType. And proceeds to fetch it from Program again. (Ignores the maxTeLimit could also have been obtained from the TET)

Since the obtained maxTeLimit is injected into the Params, it makes sense to simply re-use that. There already exists a unit test case to check the NPE from the previous PR.

@ameenhere ameenhere requested review from muilpp and zubaira January 3, 2025 12:51
Copy link

sonarqubecloud bot commented Jan 3, 2025

@ameenhere ameenhere enabled auto-merge (squash) January 3, 2025 13:32
@ameenhere ameenhere merged commit 2fb6a08 into 2.41 Jan 3, 2025
15 checks passed
@ameenhere ameenhere deleted the DHIS2-18459_2.41 branch January 3, 2025 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants