Skip to content

Commit

Permalink
Improve pages autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
annda committed Nov 30, 2023
1 parent 27e483c commit 628ca1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.php
Expand Up @@ -102,7 +102,7 @@ public function handleAjaxAutocomplete(Event $event)

if ($INPUT->has('pg')) {
$search = $INPUT->str('pg');
$pages = ft_pageLookup($search);
$pages = ft_pageLookup($search, true);
$found = array_map(function ($id, $title) {
return ['value' => $id, 'label' => $title ?? $id];
}, array_keys($pages), array_values($pages));
Expand Down

0 comments on commit 628ca1a

Please sign in to comment.