When I enable this module and then try to select any value in the selectbox I get:
PHP Fatal error: Call to a member function getPluginId() on a non-object in EntityDisplayTrait.php on line 54
The same error appears and on 8.x-1.0 version
Error appears when $display->getRenderer($field_name) is empty (when $field_name is a name of current List field)
if I try to add checking like this: if(empty($display->getRenderer($field_name))) { return; } - Everything seems working, but Im not sure that everything goes correct after it
Comment | File | Size | Author |
---|---|---|---|
#2 | cck_select_other-2709413-fix-null-renderer-1.patch | 623 bytes | mradcliffe |
Comments
Comment #2
mradcliffeThank you for reporting this! I reproduced it locally, but after several hours of trying to write a test, I could not write a test that would cause this to fail. I tried a bunch of different scenarios of multiple content types with and without list fields using cck_select_other or not.
So here's a patch but needs to be tested manually.
Comment #4
mradcliffeOpened #2712219: Support Drupal 8.2.x to address Drupal 8.2.x failure.
Comment #11
mradcliffeThis passes tests locally on PostgreSQL, and it passes tests on MySQL here.
Must be a random test fail...