From 279c69c5106d677535f73b1f9df8ae8e19675882 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Mon, 4 Sep 2023 09:34:44 +0200 Subject: [PATCH] fix: [userSettings:edit] Correctly pre-select user to be edited --- src/Controller/UserSettingsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/UserSettingsController.php b/src/Controller/UserSettingsController.php index 7f9690a..b6d8ecd 100644 --- a/src/Controller/UserSettingsController.php +++ b/src/Controller/UserSettingsController.php @@ -114,7 +114,7 @@ class UserSettingsController extends AppController $dropdownData = [ 'user' => $this->UserSettings->Users->find('list', [ 'sort' => ['username' => 'asc'] - ]), + ])->toArray(), ]; $this->set(compact('dropdownData')); $this->set('user_id', $this->entity->user_id);