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#1636 - In system status check avoid E_NOTICEs for smart groups that don't have form_values[0] #16707

Merged
merged 1 commit into from
Mar 8, 2020

Conversation

demeritcowboy
Copy link
Contributor

Overview

In some installs where smart groups are defined differently, you get Undefined index 0 line 109 in CRM/Utils/Check/Component/Schema.php when first logging in. They also happen on the system status page but you don't see them there because they get snippet'd out, but they appear in drupal watchdog.

Related lab tickets:

Technical Details

In PR #16267 a check for deleted custom fields in smart groups was added. For whatever reason, as also addressed in #16417, some smart groups don't have a form_values[0], so you get undefined index notices.

I've just applied the same fix/workaround as in #16417

Comments

Started in 5.23 so have based against 5.24. It's just a system status check so not sure it needs to be backported, although you see the notices every time you log in.

FYI @jitendrapurohit @jmcclelland

@civibot
Copy link

civibot bot commented Mar 8, 2020

(Standard links)

@civibot civibot bot added the 5.24 label Mar 8, 2020
@seamuslee001
Copy link
Contributor

Yeh I think this might have something to do with how the smart groups have been generated @eileenmcnaughton thoughts

@eileenmcnaughton
Copy link
Contributor

I think it's OK to merge this - the lack of formValue is a little scary -but outside the scope of this check to worry about

@eileenmcnaughton eileenmcnaughton merged commit 14e94e8 into civicrm:5.24 Mar 8, 2020
@demeritcowboy demeritcowboy deleted the smartgroup-warning branch March 8, 2020 23:08
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