Fix some issues
This commit is contained in:
@@ -91,7 +91,11 @@ class DirectoryController extends AbstractController
|
||||
* @var CertificateRepository $repo
|
||||
*/
|
||||
$repo = $entityManager->getRepository('App\Entity\\' . $dType);
|
||||
$RenderArray[$dType] = $repo->listForUser($this->getUser())->limitDirectory($Directory)->getResult();
|
||||
$RenderArray[$dType] = $repo->listForUser($this->getUser())
|
||||
->limitDirectory($Directory)
|
||||
->order(['createdAt' => 'DESC'])
|
||||
->limit(4)
|
||||
->getResult();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user