From bd1c9fce7b132478612556dabf011f0e4a2bf988 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 12 Sep 2020 22:15:10 +0200 Subject: [PATCH] name account media folders based on id and login name --- Controller/ApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 482e681..8e8b5ca 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -737,7 +737,7 @@ final class ApiController extends Controller $this->createProfileForAccount($account, $request); $collection = new Collection(); - $collection->setName((string) $account->getId()); + $collection->setName(((string) $account->getId()) . ' ' . $account->getName()); $collection->setVirtualPath('/Accounts'); $collection->setPath('/Modules/Media/Files/Accounts/' . ((string) $account->getId())); $collection->setCreatedBy(new NullAccount($request->getHeader()->getAccount()));