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#1668 - Avoid E_NOTICE when removing last dashlet #16883

Merged
merged 1 commit into from
Mar 24, 2020

Conversation

demeritcowboy
Copy link
Contributor

Overview

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

  1. Go to /civicrm/dashboard
  2. Remove all dashlets.
  3. Look in drupal watchdog: Notice: Undefined index: columns in CRM_Contact_Page_AJAX::dashboard() (line 509 of .../CRM/Contact/Page/AJAX.php)

Subsequent visits to a blank dashboard are fine but you can make the notice come back by adding a dashlet and then removing it again.

@civibot civibot bot added the master label Mar 23, 2020
@civibot
Copy link

civibot bot commented Mar 23, 2020

(Standard links)

@colemanw
Copy link
Member

Nice use of the coalesce operator!

@demeritcowboy
Copy link
Contributor Author

He he. I saw it used somewhere recently - can't remember where.

@demeritcowboy
Copy link
Contributor Author

jenkins retest this please

@seamuslee001
Copy link
Contributor

Test fail unrelated

@seamuslee001 seamuslee001 merged commit 4c65d6c into civicrm:master Mar 24, 2020
@demeritcowboy demeritcowboy deleted the blank-dashboard-notice branch March 24, 2020 03:27
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.

3 participants