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#1989 - E_WARNING when editing custom field with logging turned on #18386

Merged

Conversation

demeritcowboy
Copy link
Contributor

@demeritcowboy demeritcowboy commented Sep 6, 2020

Overview

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

  1. Turn on logging (admin - system settings - misc).
  2. Turn off popups so you can see the warning (admin - customize - display prefs) (or install the loudnotices extension).
  3. Edit an existing custom field, e.g. just change the label, or don't even do anything and just click save.
  4. ==> Notice: Undefined index: ADD
  5. ==> Warning: Invalid argument supplied for foreach()

Technical Details

When there isn't anything to add to the table the array is empty.

Comments

Has test.
With whitespace ignored it's a one-line change.

@civibot civibot bot added the master label Sep 6, 2020
@civibot
Copy link

civibot bot commented Sep 6, 2020

(Standard links)

@demeritcowboy
Copy link
Contributor Author

jenkins retest this please

@seamuslee001
Copy link
Contributor

Looks fine to me merging

@seamuslee001 seamuslee001 merged commit 4282009 into civicrm:master Sep 6, 2020
@demeritcowboy demeritcowboy deleted the logging-customfield-notice branch September 6, 2020 22:41
@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.

2 participants