Problem/Motivation
Under some special circumstances (probably when there is no bundle) I get:
Notice: Undefined index: $bundle in Drupal\eva\Plugin\views\display\Eva->optionsSummary() (line 133 of modules/contrib/eva/src/Plugin/views/display/Eva.php).

| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot from 2022-04-20 09-58-20.png | 207.35 KB | losewn |
Issue fork eva-3276152
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:
Comments
Comment #3
ahebrank commentedI think $bundle_names probably still needs to get something for each bundle. Maybe like this?
I'm a little worried that this is a bigger issue and we should be getting bundle info a different way if 'label' in this array is undefined. Can you post the contents of $bundle_info[$bundle] for your site?
Comment #4
ahebrank commentedComment #6
vitaliyb98 commentedComment #8
vitaliyb98 commentedAdded new branch '3276152-missing-bundle' for 3.1.x
Comment #9
vitaliyb98 commentedIn branch
3276152-missing-bundle, added the solution suggested by @ahebrank and covered it with a test.Will be good if someone could review my changes.
Comment #10
terry_kolodiy commentedHi. I've tested this solution with no-bundle entities: it works fine and applies 'Unknown bundle'.
So, I think the fix can be merged
Thanks for your fix
Comment #12
vitaliyb98 commentedMerged into 3.1.x, thanks for the review.