Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The following notice shows up when the comment module is disabled.
Notice: Undefined index: comment in editableviews_views_data_alter() (line 102 of public_html/sites/all/modules/contrib/editableviews/editableviews.views.inc).
The patch eliminates it
Comment | File | Size | Author |
---|---|---|---|
#4 | 0001-remove-warnings-when-comment-module-is-disabled.patch | 1.19 KB | drone.ah |
0001-remove-warnings-when-comment-module-is-disabled.patch | 1.24 KB | drone.ah | |
Comments
Comment #1
Paul B CreditAttribution: Paul B commentedComment #2
Paul B CreditAttribution: Paul B commentedThe patch works for me.
Comment #3
joachim CreditAttribution: joachim commentedThanks for the patch! I guess this is caused by field instances that haven't been deleted when a module is disabled.
Just a few tweaks to make it more readable:
It's actually fine to check all the levels of the array at once. So we only need the second isset() as it will check for both array levels.
Also, patch has a whitespace change that's crept in.
Comment #4
drone.ah CreditAttribution: drone.ah commentedI've removed the redundant isset statement but I can't find the whitespace error... :-/ can you be more specific?
Comment #5
Paul B CreditAttribution: Paul B commentedComment #6
joachim CreditAttribution: joachim commentedCommitted. Thanks!
git commit -m "Issue #2089521 by drone.ah: Fixed notice for fields on missing entity types." --author="drone.ah "