Skip to content
Snippets Groups Projects

Issue #3316013: Webform options limit - Entity Reference Option/Select not...

1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
@@ -40,6 +40,12 @@ trait WebformEntityTrait {
return;
}
// If the #options is an empty, do not reset it.
// @see \Drupal\webform_options_limit\Plugin\WebformHandler\OptionsLimitWebformHandler::alterOptionsElement
if (isset($element['#options']) && $element['#options'] === []) {
return;
}
// Make sure #target_type is not empty.
if (empty($element['#target_type'])) {
$element['#options'] = [];
Loading