From 876c162df831f70a9b4ed886f35c47c9c22df5ea Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Thu, 27 Apr 2023 15:25:13 +0200 Subject: Use the searchDisplayName recommended method in user:list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- core/Command/User/ListCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/Command') diff --git a/core/Command/User/ListCommand.php b/core/Command/User/ListCommand.php index c254a8a11cf..bf4bf7f030e 100644 --- a/core/Command/User/ListCommand.php +++ b/core/Command/User/ListCommand.php @@ -74,7 +74,7 @@ class ListCommand extends Base { } protected function execute(InputInterface $input, OutputInterface $output): int { - $users = $this->userManager->search('', (int) $input->getOption('limit'), (int) $input->getOption('offset')); + $users = $this->userManager->searchDisplayName('', (int) $input->getOption('limit'), (int) $input->getOption('offset')); $this->writeArrayInOutputFormat($input, $output, $this->formatUsers($users, (bool)$input->getOption('info'))); return 0; -- cgit v1.2.3