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

TP2000-1765-Fix-measures-search-conditions-bug #1428

Closed
wants to merge 2 commits into from

Conversation

mattjamc
Copy link
Collaborator

TP2000-1765-Fix-measures-search-conditions-bug

Why

HMRC have reported a bug when searching for measures gives a 500 response. This is because the conditions macro looks for the latest transaction in the workbasket to determine the conditions to show and HMRC users do not have a workbasket.

What

This PR updates the conditions macro to only check for the latest transaction if a workbasket is present. If not it will set the latest transaction to None which makes the approved_up_to_transaction default to the latest approved.

@mattjamc mattjamc marked this pull request as ready for review March 11, 2025 09:18
@mattjamc mattjamc requested a review from a team as a code owner March 11, 2025 09:18
@mattjamc mattjamc closed this Mar 11, 2025
@mattjamc mattjamc deleted the TP2000-1675-Fix-measure-search-condition-bug branch March 11, 2025 09:22
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.

1 participant