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

263 - Modify College.find(:id) calls to account for destroyed colleges #312

Merged

Conversation

Janell-Huyck
Copy link
Contributor

Fixes #263

Modify college_name(id) functions to account for destroyed colleges.

We were trying to do College.find(id), which would crash if we couldn't find a college with that id. This refactoring of the college_name(id) function will return an empty string if either id is nil or if there is not a college with the sent id.

@Janell-Huyck Janell-Huyck added the bug Something isn't working label Nov 20, 2023
@Janell-Huyck Janell-Huyck changed the title 263 - Modify college_name(id) to account for destroyed colleges 263 - Modify Collete.find(:id) calls to account for destroyed colleges Nov 20, 2023
@Janell-Huyck Janell-Huyck changed the title 263 - Modify Collete.find(:id) calls to account for destroyed colleges 263 - Modify College.find(:id) calls to account for destroyed colleges Nov 20, 2023
@haitzlm haitzlm self-assigned this Nov 28, 2023
Copy link
Contributor

@haitzlm haitzlm left a comment

Choose a reason for hiding this comment

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

this seems pretty straightforward.

@Janell-Huyck Janell-Huyck merged commit 5dad942 into qa Nov 28, 2023
2 checks passed
@hortongn hortongn deleted the bug-263-citations-page-crashing-after-college-deletion branch November 29, 2023 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needed for deploy small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Citation page crashes after deleting a college
2 participants