Loading src/Controller/WebformElementController.php +1 −1 Changes for src/Controller/WebformElementController.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ class WebformElementController extends ControllerBase { // Sort matches by label and enforce the limit. if ($matches) { uasort($matches, function (array $a, array $b) { return $a['label'] > $b['label']; return $a['label'] <=> $b['label']; }); $matches = array_values($matches); $matches = array_slice($matches, 0, $element['#autocomplete_limit']); Loading Loading
src/Controller/WebformElementController.php +1 −1 Changes for src/Controller/WebformElementController.php: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ class WebformElementController extends ControllerBase { // Sort matches by label and enforce the limit. if ($matches) { uasort($matches, function (array $a, array $b) { return $a['label'] > $b['label']; return $a['label'] <=> $b['label']; }); $matches = array_values($matches); $matches = array_slice($matches, 0, $element['#autocomplete_limit']); Loading