Commit 51129a79 authored by Tim Bozeman's avatar Tim Bozeman Committed by jibran

Issue #2861326 by Tim Bozeman: Undefined index: target_bundles in...

Issue #2861326 by Tim Bozeman: Undefined index: target_bundles in DynamicEntityReferenceOptionsSelectWidget
parent eba9b639
......@@ -29,7 +29,7 @@ class DynamicEntityReferenceOptionsSelectWidget extends OptionsSelectWidget {
// We only support groups when there is more than 1 target_bundle
// available.
return count($settings[$entity_type_id]['handler_settings']['target_bundles']) > 1;
return !empty($settings[$entity_type_id]['handler_settings']['target_bundles']) && count($settings[$entity_type_id]['handler_settings']['target_bundles']) > 1;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment