Skip to content
Snippets Groups Projects

Issue #3308219: Autocomplete widget value callback returns invalid value in between first set of parentheses

Merged Issue #3308219: Autocomplete widget value callback returns invalid value in between first set of parentheses
2 files
+ 65
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -99,8 +99,8 @@ class TypedResourceObjectAutocompleteWidget extends WidgetBase {
// If input is being submitted..
if ($input !== FALSE) {
// .. convert this to an ID to store.
$opening_bracket_index = strpos($input, '(');
$closing_bracket_index = strpos($input, ')');
$opening_bracket_index = strrpos($input, '(');
$closing_bracket_index = strrpos($input, ')');
if ($opening_bracket_index === FALSE) {
return '';
}
Loading