Closed (fixed)
Project:
Dynamic Entity Reference
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2016 at 17:17 UTC
Updated:
25 Nov 2016 at 20:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
jibranWhile working on #2469609: Convert all WebTestBase to BrowserTestBase I found this bug. @larowlan can you please have look at it?
Comment #7
larowlanOk
Comment #8
OnkelTem commentedI have a related issue.
the if-part never triggers here on Drupal 8.0.5.
Particularly,
$parents = $triggering_element['#parents'];results to['submit']array i.e. w/o 'settings'.Comment #9
OnkelTem commentedI've checked the patch with the latest Drupal 8.1.x (thinking that the patch logic rely on some latest changes) and it doesn't seem to work properly - the
if-content is still unreachable.For example, if you create a DER field referencing a non-bundled entity like "User", then settings>user>handler_settings>target_bundles will get value of "[]", which prevents autocomplete to work as it expects either not empty array of bundles or NULL (which obviously would happen in the 320th line if it was called).
Comment #10
OnkelTem commentedWhat do you think:
Comment #11
jibranThanks @OnkelTem. I think #10 makes a lot of sense. If you can do a patch it'd be great but if not I'll have a look at it on weekend if Lee won't beat me to it.
Comment #12
jibran@OnkelTem can you try this?
Comment #15
jibran:/
Comment #16
jibranHere is a green patch.
Comment #17
larowlanc/p issue
other than that, rtbc
great work
Comment #19
jibranThanks @larowlan for the review.
Fixed on commit
Comment #21
jibran