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

QB throws an exception when formatting LoanPreparation #1675

Closed
maxpatiiuk opened this issue May 20, 2022 · 2 comments · Fixed by #1860
Closed

QB throws an exception when formatting LoanPreparation #1675

maxpatiiuk opened this issue May 20, 2022 · 2 comments · Fixed by #1860
Assignees
Labels
1 - Bug Incorrect behavior of the product

Comments

@maxpatiiuk
Copy link
Member

maxpatiiuk commented May 20, 2022

When QueryBuilder tries to format or aggregate LoanPreparation resource, it throws the following exception:

Specify 7 Crash Report - 2022-05-20T17_36_13.395Z.json.zip

Replicated on edge and a11y in kufish

Screen Shot 2022-05-20 at 12 36 06

@maxpatiiuk maxpatiiuk added the 1 - Bug Incorrect behavior of the product label May 20, 2022
@benanhalt
Copy link
Contributor

The problem is that the formatter definition is missing any cases inside the switch clause:

<format
        name="LoanPreparation"
        title="LoanPreparation"
        class="edu.ku.brc.specify.datamodel.LoanPreparation"
        default="true"
        >
        <switch single="true">
        </switch>
    </format>

I'm adding a conditional to handle this case by including a place holder value instead of throwing an exception.

@grantfitzsimmons
Copy link
Member

Cannot recreate the issue. Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - Bug Incorrect behavior of the product
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants