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

dev/core#1868 - Regression - Description field is always blank on profiles admin page and slew of E_NOTICES #17786

Merged
merged 1 commit into from
Jul 11, 2020

Conversation

demeritcowboy
Copy link
Contributor

@demeritcowboy demeritcowboy commented Jul 10, 2020

Overview

https://lab.civicrm.org/dev/core/-/issues/1868

Before

Blank description field at Administer - Customize - Profiles.
Lots of E_NOTICES.

After

Good.

Technical Details

Recent cleanup to remove pre 4.4.7 upgrade code accidentally removed the description lookup. This puts it back.

Comments

Seems to only be in master.

@civibot
Copy link

civibot bot commented Jul 10, 2020

(Standard links)

@civibot civibot bot added the master label Jul 10, 2020
@totten
Copy link
Member

totten commented Jul 10, 2020

Patch makes sense conceptually.

You could probably put description in the list of fields unconditionally and skip the checkIfFieldExists(). Per UFGroup.xml, the description was added in 4.4 - so anybody who meets the new "miniumum upgrade version" (4.4.7) should already have the field.

@demeritcowboy
Copy link
Contributor Author

Thanks makes sense. I had just copied what was there before and didn't really think about it. Have updated.

@eileenmcnaughton
Copy link
Contributor

@demeritcowboy does this only affect master? I feel like the commits were pretty recent so probably it does?

@demeritcowboy
Copy link
Contributor Author

Yes only affects master.

@eileenmcnaughton
Copy link
Contributor

@demeritcowboy and having processed @totten's comments above do you think this should be merged as is?

I read them as non-blocking but please consider this. So if you have done so I'm happy to merge

@demeritcowboy
Copy link
Contributor Author

Yep I addressed @totten 's comments. In the first version I had put back the if checkiffieldexists that was there before. This version assumes the field is present since you can no longer upgrade from a version where it isn't present.

@eileenmcnaughton eileenmcnaughton merged commit 2ae8c0b into civicrm:master Jul 11, 2020
@eileenmcnaughton
Copy link
Contributor

thanks @demeritcowboy

@demeritcowboy demeritcowboy deleted the profile-description branch July 11, 2020 11:04
@demeritcowboy
Copy link
Contributor Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants