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

Check field value before accessing an attribute #3644

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

yakky
Copy link
Collaborator

@yakky yakky commented Jul 26, 2023

While ReviewAssignment.review_round is usually set by logic functions, in case of customization of the workflow this might be None, it's best to check its value before accessing an attribute of the foreignkey

@Bbkctp
Copy link
Contributor

Bbkctp commented Jul 26, 2023

Can one of the admins verify this patch?

@ajrbyers
Copy link
Member

test this please

@joemull joemull self-requested a review June 24, 2024 23:57
@joemull joemull self-assigned this Jun 24, 2024
@joemull joemull merged commit 9daf7f8 into openlibhums:master Jun 25, 2024
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.

4 participants