This commit is contained in:
Dennis Eichhorn 2019-05-27 21:55:41 +02:00
parent c03a74b6f3
commit 239b2cb288
2 changed files with 4 additions and 6 deletions

View File

@ -266,6 +266,10 @@ final class ApiController extends Controller
$files = \json_decode($files, true);
}
if (!\is_array($files)) {
$files = [$files];
}
// TODO: make sure this user has permissions for provided files
/* Create collection */

View File

@ -16,12 +16,6 @@
$templates = $this->getData('reports');
$footerView = new \phpOMS\Views\PaginationView($this->app, $this->request, $this->response);
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');
$footerView->setPages(\count($templates) / 25);
$footerView->setPage(1);
$footerView->setResults(\count($templates));
echo $this->getData('nav')->render(); ?>