Skip to content
Snippets Groups Projects

Issue #3525997 by bakop: Entity reference autocomplete in Paragraph causes SQL...

1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
+ 3
0
@@ -246,6 +246,9 @@ class Select2 extends Select {
'handler' => $element['#selection_handler'],
];
$value = is_array($element['#value']) ? $element['#value'] : [$element['#value']];
$value = array_filter($value, function ($v) {
return is_numeric($v);
});
return $value ? static::getValidReferenceableEntities($value, $handler_settings) : [];
}
Loading