Problem/Motivation
Warning: Invalid argument supplied for foreach() in comment_notify_entity_extra_field_info() (line 569 of modules/contrib/comment_notify/comment_notify.module).
comment_notify_entity_extra_field_info()Steps to reproduce
Attach comment notify to any type like media etc.
If that doesn't exist on page, it throws warnings on pages
Proposed resolution
Check for any bundles available on that page and proceed only if that exists.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork comment_notify-3173088
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3173088-Invalid_argument
changes, plain diff MR !2
- 3173088-facing-warnings-on
changes, plain diff MR !1
Comments
Comment #2
kirantej_p commentedAdd a check on the existing bundles before foreach() loop will fix those warnings.
Comment #6
the_g_bomb commentedComment #8
gnugetHello.
Can you provide a list of the steps to replicate the bug?
I would like to write a test.
Thanks!
Comment #9
cedeweyComment #10
cedewey