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

Do not cause a fatal error if no contact_id field for a note is fille… #13910

Merged
merged 1 commit into from
Mar 29, 2019

Conversation

seamuslee001
Copy link
Contributor

…d in when viewing contact notes

Overview

Through direct SQL and DAO level statements it is possible to create a note without having the contact_id field filled in, this section of the code assumes that when you are viewing a contact the contact_id field of all the notes rendered will be there when that isn't necessarily the case in the DB, this just stops a fatal error.

Before

Fatal error generated when trying to view the contacts' notes tab if any notes don't have a contact_id set

After

no fatal error

ping @eileenmcnaughton

@civibot civibot bot added the master label Mar 28, 2019
@civibot
Copy link

civibot bot commented Mar 28, 2019

(Standard links)

@eileenmcnaughton
Copy link
Contributor

trivial & safe IMHO

@seamuslee001
Copy link
Contributor Author

Jenkins re test this please

2 similar comments
@seamuslee001
Copy link
Contributor Author

Jenkins re test this please

@seamuslee001
Copy link
Contributor Author

Jenkins re test this please

@seamuslee001
Copy link
Contributor Author

Merging

@seamuslee001 seamuslee001 merged commit a968364 into civicrm:master Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants